Skip to content

Commit

Permalink
Revert "Revert "Made changes based on omniauth#17 which was not merge…
Browse files Browse the repository at this point in the history
…d yet into master""

This reverts commit ef9e5eb.
  • Loading branch information
Andrew-Tolentino committed Aug 27, 2021
1 parent ef9e5eb commit 11a2e86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/omniauth/strategies/okta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ class Okta < OmniAuth::Strategies::OAuth2
h[:raw_info] = raw_info unless skip_info?

if access_token
h[:id_token] = access_token.token
h[:id_token] = oauth2_access_token['id_token']

if !options[:skip_jwt] && !access_token.token.nil?
h[:id_info] = validated_token(access_token.token)
if !options[:skip_jwt] && !h[:id_token].nil?
h[:id_info] = validated_token(h[:id_token])
end
end
end
Expand Down

0 comments on commit 11a2e86

Please sign in to comment.