Userinfo returns E0000022

Hello

I am getting “The endpoint does not support the provided HTTP method” with the following test with curl:

curl -v -X POST -H “Authorization: Bearer {access token}” https://dev-687195.okta.com/oauth2/default/v1/userInfo

I also tried “-X GET” and got the same error.

Thanks

Hi @wenjun,

Can you post the /authorize call that you made to get the access_token?
I want to make sure that the your used the same authorization server (/oauth2/v1/default) to get the token.

Regards,
Vijet

Hello Vijet

Here is the call to authorize: https://dev-687195.okta.com/oauth2/default/v1/authorize?client_id=0oari25zyiFly4ZHF4x6&redirect_uri=http%3A%2F%2Flocalhost%3A8081%2Fapi%2Foauth_cb&response_type=code&scope=openid+profile+email&idp=0oarnuugbRaKgzQIz4x6&state=f7ojogqor5tke8zupdz

Hi @wenjun,

That seems right to me.
I’m not sure what could be the issue here.
Can you also try calling the introspect endpoint with the access_token to make sure the token is valid?

it should be userinfo not userInfo

1 Like