Hi everyone!
As commonly used to do like normal dev people, I started surfing around Auth0, ‘get started’ pages and consulting documentation.
I’ve followed up NPM Documentation about OpenID Client refering me the parameters needed to pass to instantiate Issuer → Client and then Strategy for authentication.
You can see my github repo where I’m actually struggling with ‘tentative’ programming as the solution given in NPM is quite incomplete.
https://github.com/jrumandal/dema-openidconnect
Do not mind about publicly revealing id and secret. I trust community.
At some point I was finally able to reach the phase where the application have to send back code and state from callback url after the login. I was able to login but not to exchange tokens as Logs says.
What am I doing wrong?
(below some logs)
Best regards and thanks in advice for tips and helps.
Ralph
Login
{
“date”: “2018-10-10T23:35:25.327Z”,
“type”: “s”,
“connection_id”: “”,
“client_id”: “l4VFVjxCyb7MNFFJFevaIo3u4M0sWxND”,
“client_name”: “Auth0 Management API (Test Application)”,
“ip”: “95.238.128.151”,
“user_agent”: “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36”,
“details”: {
“prompts”: ,
“completedAt”: 1539214525327,
“elapsedTime”: null
},
“hostname”: “jrumandal.eu.auth0.com”,
“user_id”: “auth0|5bbe690c5d822c430a98b397”,
“user_name”: “guest@guest.guest”,
“log_id”: “90020181010233525327961394437582863982146684401458610178”
}
Exchange token
{
“date”: “2018-10-10T22:12:38.954Z”,
“type”: “feacft”,
“description”: “Unauthorized”,
“connection_id”: “”,
“client_id”: null,
“client_name”: null,
“ip”: “95.238.128.151”,
“user_agent”: “openid-client/2.4.3 (GitHub - panva/node-openid-client: OpenID Certified™ Relying Party (OpenID Connect/OAuth 2.0 Client) implementation for Node.js.)”,
“hostname”: “jrumandal.eu.auth0.com”,
“user_id”: “”,
“user_name”: “”,
“log_id”: “90020181010221238956752082701665369813482244016219095042”
}