Hi, Experts,
I am building a node JS web app that will call REST API from one login user info.
https://developers.onelogin.com/quickstart/authentication#web-app
spefically from
https://github.com/onelogin/onelogin-oidc-node/tree/master/1.%20Auth%20Flow
the goal is to attain this
https://developers.onelogin.com/openid-connect/api/user-info
but when you use the example curl request you get this:
[code]curl -XGET "
https://openid-connect.onelogin.com/oidc/me" \
> -H "Authorization: Bearer 0e4e2d02323de1e71dda7843d9
68f2042596
5488d407fb
c952927389
b63517ac56
63"
{"error":"invalid_token","
error_desc
ription":"
invalid token provided"}[/code]
and
[code]curl -XGET "
https://domain.onelogin.com/oidc/me" \
> -H "Authorization: Bearer 0e4e2d02323de1e71dda7843d9
68f2042596
5488d407fb
c952927389
b63517ac56
63"
{"error":"invalid_token","
error_desc
ription":"
invalid token provided"}[/code]
the flow is API call goes to one login and one login passes access key so you can get user info. when you try to call user info you get an error.
any help would be greatly appreciated.
thank you