Skip to content
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

error: 'invalid_token', error_description: 'invalid token provided' #4

Open
LeonardoGuide-accenture opened this issue Sep 13, 2021 · 5 comments

Comments

@LeonardoGuide-accenture

Hi Ralph.
The token expired or revoked ?
Best Regards
Follow below error stack

<-- 401 FROM GET https://matls-auth.mockbank.poc.raidiam.io/reg/-NJXWEC8TOPVSBSg8Uh0L
<-- BODY { error: 'invalid_token', error_description: 'invalid token provided' }

@kristian-kyvik
Copy link

Hi @RalphBragg,

I am experiencing the same error after downloading a fresh version of the repo and running the node index-mockbank.js command

<-- BODY { error: 'invalid_token', error_description: 'invalid token provided' }

...applications-exemplo/tpp-nodejs/node_modules/openid-client/lib/helpers/process_response.js:45
throw new OPError(response.body, response);
^
OPError: invalid_token (invalid token provided)
at processResponse (.../applications-exemplo/tpp-nodejs/node_modules/openid-client/lib/helpers/process_response.js:45:13)
at Function.fromUri (.../applications-exemplo/tpp-nodejs/node_modules/openid-client/lib/client.js:1467:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async .../tpp-nodejs/index-mockbank.js:252:24 {
error: 'invalid_token',
error_description: 'invalid token provided'
}

@luisenriquegomesportugal

I had got the same error either!

@LeonardoGuide-accenture
Copy link
Author

Hi Guys.
I solved this problem change the example for the correct software statements and certificate(of my organization).
Another point it is the DCR need to be done before (by postman for exemple) to obtain Reg and accestoken.
Best Regards

@blv-alex
Copy link

Hello, @RalphBragg. The problem seems to be that the dynamic client used in the code no longer exists. It can be really very helpful if another dynamic client can be used in the example. It could gives us more visibility regarding how to implement all necessary flows.

Thank you in avance.

@ghanathe
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants