does anyone know how to call the /userinfo endpoin...
# ory-network
c
does anyone know how to call the /userinfo endpoint listed in the ory console(after u set up a client) ? is get or post? what params or data i have to give it? i cant find any docs on how to use this endpoint, thanks...
g
c
@gentle-thailand-50068 hello, i have seen this doc before, but it is still not clear to be what data i need to pass it to make it work, i am assuming to give it and id token, but i tried and didnt work
g
There might be more information in the
WWW-Authenticate header
of the response
h
What token are you using?
c
@gentle-thailand-50068 i think this is all it says, @high-optician-2097, the token originated from the /oauth2/token endpoint, and i am using the id token to hit /userinfo
g
according to the OIDC Spec you have to use the access token (https://openid.net/specs/openid-connect-core-1_0.html#UserInfo)
h
yes, you need to use the access token
the id token can not be used
c
oh thanks! it worked, thank you both very much! would be nice if the doc could mention this, but Im assuming this is OIDC spec that i need to be more familiar with... really appreciate the help!!
g
glad we could help 👍
🙌 1