OAuth Login does not redirect to authorization page
Created by: ClassicCut
When using gitlab as an oauth application provider, if I'm prompted to sign-in to gitlab as part of the authorization flow, I am redirected to the home page, rather than the authorize application page, thus kicking me out of the oauth authorization flow.
To reproduce: create an oauth application on gitlab. On an external service configured to use gitlab as an oauth provider, initiate an oauth session (when not currently signed-in to gitlab)
Expected behavior: after logging in, I should be redirected to the authorize application page, prompting me to authorize the requesting application.
Observed behavior: after logging in to gitlab, the oauth flow breaks, and I'm dumped into the gitlab home page/dashboard.
If I'm already logged in to gitlab, the whole oauth authorization flow works as expected.
*edit: I'm experiencing this on both gitlab.com (version 7.12.0-ee) and a private hosted gitlab instance (version 7.11.2)