We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
raw_info
1 parent 85f839a commit 9fe4bdbCopy full SHA for 9fe4bdb
lib/omniauth/strategies/keycloak.rb
@@ -83,12 +83,6 @@ def request_phase
83
}
84
end
85
86
- def raw_info
87
- id_token_string = access_token.token
88
- jwks = JSON::JWK::Set.new(@certs)
89
- JSON::JWT.decode id_token_string, jwks
90
- end
91
-
92
protected
93
94
def build_access_token
@@ -128,6 +122,15 @@ def log_config(config_json)
128
122
log :debug, "Authorize url: #{@authorize_url}"
129
123
log :debug, "Token url: #{@token_url}"
130
124
125
+
126
+ def raw_info
127
+ @raw_info ||= decode_token(access_token.token)
+ end
+ def decode_token(token_string)
131
+ jwks = JSON::JWK::Set.new(@certs)
132
+ JSON::JWT.decode token_string, jwks
133
134
135
136
0 commit comments