mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
fix: redirect from oauth2 authorization page (#12241)
At the moment it just says "you are not authorized", but we want to automatically redirect to the login page.
This commit is contained in:
@ -292,7 +292,7 @@ func (api *API) deleteOAuth2ProviderAppSecret(rw http.ResponseWriter, r *http.Re
|
||||
// @Param scope query string false "Token scopes (currently ignored)"
|
||||
// @Success 302
|
||||
// @Router /oauth2/authorize [post]
|
||||
func (api *API) postOAuth2ProviderAppAuthorize() http.HandlerFunc {
|
||||
func (api *API) getOAuth2ProviderAppAuthorize() http.HandlerFunc {
|
||||
return identityprovider.Authorize(api.Database, api.AccessURL)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user