OpenID-Connect-PHP icon indicating copy to clipboard operation
OpenID-Connect-PHP copied to clipboard

requestUserInfo should maybe check if claim is already received by id token

Open jduepmeier opened this issue 6 years ago • 1 comments

Some providers like coreos/dex doesn't implement the userInfo endpoint.

Is it possible to check the received claims in the id token first before trying to get them with the userInfo endpoint? This should be also a performance boost.

jduepmeier avatar Nov 21 '17 11:11 jduepmeier

🤔 @jduepmeier Good question. I'm sure you could extend the lib with your own class and override the method of interest.

Is it possible to check the received claims in the id token first before trying to get them with the userInfo endpoint?

Can you reference the line in the source if this were to happen? (or even better submit a PR?) :)

jumbojett avatar Nov 21 '17 15:11 jumbojett