Skip to content

Commit

Permalink
Access user id properly in openid authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Redande committed Oct 26, 2023
1 parent ea3d09e commit 604be9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/doorkeeper_openid_connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

user = JSON.parse(user_response)

user.id
user["id"]

# or if you need pairwise subject identifier, implement like below:
# Digest::SHA256.hexdigest("#{resource_owner.id}#{URI.parse(application.redirect_uri).host}#{'your_secret_salt'}")
Expand Down

0 comments on commit 604be9f

Please sign in to comment.