How do I get the ID token via command line

I currently try to get the ID token from an https or curl request. Currenlty I use

https://my-auth.eu.auth0.com/authorize?
    response_type=code&
    client_id=frontend-client-id&
    redirect_uri=http://127.0.0.1:8001/docs/oauth2-redirect&
    scope=openid profile email read:sample&
    audience=https://my-auth.eu.auth0.com/api/v2/&

resp.


https://my-auth.eu.auth0.com/authorize?
  audience=my-backend-audience&
  response_type=id_token&
  client_id=frontend-client-id&
  redirect_uri=undefined

yet I just get

Could you help me to get a feasible ID token by using a curl or https request?

Hey there @accounts9! Welcome to the Auth0 Community :slight_smile:

Have you had any luck getting an ID Token? What’s the specific use case? This can definitely be a bit tricky as many flows are designed to work within the context of a browser. I often find myself using a tool like https://oidcdebugger.com/ where you just need to add the redirect uri (https://oidcdebugger.com/debug) to your application in Auth0 and can test the flow that way.

Let us know!

2 Likes

This topic was automatically closed after 10 days. New replies are no longer allowed.