-
-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advice: serving user info #207
Comments
I forgot to mention that I also considered returning the field |
You can call |
making |
Thanks! |
Question on this I want to make a |
Hello,
I need some advice to expose the user info of the authenticated user to my client. I would really appreciate guidance on this. Hopefully I missed something obvious.
The first approach that I tried was to invoke the method
openidc_call_userinfo_endpoint()
but that didn't work because it's private. Lua rookie mistake :)So then I thought that I could proxy call the userinfo endpoint but then it would be nice if I could get the endpoint's URL from the discovery data. I've noticed the variable
opts.discovery.userinfo_endpoint
so I thought that I could get it's value like this:My idea/understanding was that
opts.discovery.userinfo_endpoint
was set during the call toauthenticate()
but it is not since the value isnil
when I try to assign it to$userinfo_endpoint
. Or maybe it is not set because I call this endpoint as an authenticated user soauthenticate()
does not perform the OIDC flow since the JWTs are not expired?Any suggestion would be greatly appreciated.
Cheers,
Tom
The text was updated successfully, but these errors were encountered: