Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions app/models/oic_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ def access_token_query
query = {
'grant_type' => 'authorization_code',
'code' => code,
'scope' => 'openid profile email user_name',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On https://nat.sakimura.org/2012/01/26/scopes-and-claims-in-openid-connect/ the following can be found:

profile – OPTIONAL. This requests that access to the End-User’s profile Claims excluding the address and email Claims at the UserInfo Endpoint be granted by the issued Access Token.
email – OPTIONAL. This requests that access to the email and verified Claims at the UserInfo Endpoint be granted by the issued Access Token.

I guess, removing all of the above in the scope does not really makes sense, does it?

'id_token' => id_token,
'redirect_uri' => "#{host_name}/oic/local_login",
'client_id' => client_config['client_id'],
'client_secret' => client_config['client_secret'],
Expand Down