Auth0 Home Blog Docs

Get an id_token automatically for testing

I am using a OneLogin OIDC connector in my web app to get an id_token via the implicit flow. I am working on writing tests for my app, and I need a way to be able to requests jwt id_token for some test users in an automated way and I was wondering if there is a way to do this without having to go through the web app and have to request the token every two hours. I tried using the Password Grant flow for this using the code in here:https://github.com/onelogin/onelogin-oidc-node

But in the response from OneLogin, I get only the access_token and the refresh_token. Alternatively Is there a way to do this by making API requests?

Hey there!

Sorry for such a delayed response! We’re doing our best in providing you with the best developer support experience out there but sometimes our bandwidth is just not enough for all the questions coming in. Sorry for the inconvenience!

Can you let us know if you still require further assistance from us?