You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OIDC: Extracted user detail handling to own OidcUserDetails class
Allows a proper defined object instead of an array an extracts related
logic out of OidcService.
Updated userinfo to only be called if we're missing details.
// TODO - Ensure response content-type is "application/json" before using in this way (5.3.2)
251
-
// TODO - The sub Claim in the UserInfo Response MUST be verified to exactly match the sub Claim in the ID Token; if they do not match, the UserInfo Response values MUST NOT be used. (5.3.2)
252
-
// TODO - Response validation (5.3.4)
253
-
// TODO - Verify that the OP that responded was the intended OP through a TLS server certificate check, per RFC 6125 [RFC6125].
254
-
// TODO - If the Client has provided a userinfo_encrypted_response_alg parameter during Registration, decrypt the UserInfo Response using the keys specified during Registration.
255
-
// TODO - If the response was signed, the Client SHOULD validate the signature according to JWS [JWS].
256
-
$claims = $idToken->getAllClaims();
257
-
foreach ($responseas$key => $value) {
258
-
$claims[$key] = $value;
259
-
}
260
-
// TODO - Should maybe remain separate from IdToken completely
// TODO - Ensure response content-type is "application/json" before using in this way (5.3.2)
213
+
// TODO - The sub Claim in the UserInfo Response MUST be verified to exactly match the sub Claim in the ID Token; if they do not match, the UserInfo Response values MUST NOT be used. (5.3.2)
214
+
// TODO - Response validation (5.3.4)
215
+
// TODO - Verify that the OP that responded was the intended OP through a TLS server certificate check, per RFC 6125 [RFC6125].
216
+
// TODO - If the Client has provided a userinfo_encrypted_response_alg parameter during Registration, decrypt the UserInfo Response using the keys specified during Registration.
217
+
// TODO - If the response was signed, the Client SHOULD validate the signature according to JWS [JWS].
218
+
$claims = $idToken->getAllClaims();
219
+
foreach ($responseas$key => $value) {
220
+
$claims[$key] = $value;
221
+
}
222
+
// TODO - Should maybe remain separate from IdToken completely
0 commit comments