Isaiah Melendez
asked on
OneLogin User Provisioning - REST API Issues
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
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
{"error":"invalid_token","
and
[code]curl -XGET "https://domain.onelogin.com/oidc/me" \
> -H "Authorization: Bearer 0e4e2d02323de1e71dda7843d9
{"error":"invalid_token","
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.