You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oauth_signin_title = Sign In to Authorize Linked Account
319
319
oauth_signin_submit = Link Account
320
+
oauth.signin.error = There was an error processing the authorization request. If this error persists, please contact the site administrator.
321
+
oauth.signin.error.access_denied = The authorization request was denied.
322
+
oauth.signin.error.temporarily_unavailable = Authorization failed because the authentication server is temporarily unavailable. Please try again later.
320
323
openid_connect_submit = Connect
321
324
openid_connect_title = Connect to an existing account
322
325
openid_connect_desc = The chosen OpenID URI is unknown. Associate it with a new account here.
@@ -1065,6 +1087,18 @@ func oAuth2UserLoginCallback(authSource *auth.Source, request *http.Request, res
1065
1087
log.Error("OAuth2 Provider %s returned too long a token. Current max: %d. Either increase the [OAuth2] MAX_TOKEN_LENGTH or reduce the information returned from the OAuth2 provider", authSource.Name, setting.OAuth2.MaxTokenLength)
1066
1088
err=fmt.Errorf("OAuth2 Provider %s returned too long a token. Current max: %d. Either increase the [OAuth2] MAX_TOKEN_LENGTH or reduce the information returned from the OAuth2 provider", authSource.Name, setting.OAuth2.MaxTokenLength)
1067
1089
}
1090
+
// goth does not provide the original error message
1091
+
// https://github.com/markbates/goth/issues/348
1092
+
ifstrings.Contains(err.Error(), "server response missing access_token") ||strings.Contains(err.Error(), "could not find a matching session for this request") {
0 commit comments