Skip to content

Commit

Permalink
Issue with authentication against MS Entra ID #59
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Nov 28, 2024
1 parent 781c308 commit f63cc97
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/redmine_oauth_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ def oauth
redirect_to oauth_client.auth_code.authorize_url(
redirect_uri: oauth_callback_url,
state: oauth_csrf_token,
scope: 'user:email'
scope: case RedmineOauth.oauth_version
when 'v2.0'
'openid profile email'
else
'user:email'
end
)
when 'GitLab'
redirect_to oauth_client.auth_code.authorize_url(
Expand Down

0 comments on commit f63cc97

Please sign in to comment.