Coder Social home page Coder Social logo

id_token missing after login about example-auth0 HOT 5 CLOSED

nuxt avatar nuxt commented on May 26, 2024
id_token missing after login

from example-auth0.

Comments (5)

Musbell avatar Musbell commented on May 26, 2024 2

try adding the following like this:

responseType: 'token id_token'
redirect: true
scope: 'profile email'

 auth: {
      responseType: 'token id_token',
      redirect: true,
      params: {
        scope: 'profile email'
      }
    }

you can read this: idToken coming back as undefined after upgrade #859

from example-auth0.

MattHoffmann avatar MattHoffmann commented on May 26, 2024

Similar issue with id_token. I've configured passwordless authentication with the scope:

{
"response_type": "token id_token",
"scope": "openid"
}

and receive this error:

{
"date": "2018-01-09T20:48:47.425Z",
"type": "f",
"description": "Missing required parameter: nonce",
"connection": "email",
"connection_id": "con_abc123",
"client_id": "abc123",
"ip": "123.123.123.123",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36",
"details": {
"body": {},
"qs": {
"scope": "openid",
"response_type": "token id_token",
"redirect_uri": "http://localhost:4200/callback",
"verification_code": "123456",
"connection": "email",
"client_id": "XYZ",
"email": "[email protected]"
},
"connection": "email",
"error": {
"message": "Missing required parameter: nonce",
"oauthError": "invalid_request",
"type": "request-error"
}
},
"log_id": "49574419589858254662358705706112685939913750580601815074"
}

No matter what I do, I can't seem to get id_token to come back from passwordless authentication.

Thank You,

from example-auth0.

vsimko avatar vsimko commented on May 26, 2024

have you tried this ?

{
  "response_type": "token id_token",
  "scope": "openid",
  "nonce": "some random string"
}

from example-auth0.

MattHoffmann avatar MattHoffmann commented on May 26, 2024

I did try using a random string but then it told me that my nonce didn't match. I assume there is an ID generated on the server side that it needs to match.

from example-auth0.

VikingTristan avatar VikingTristan commented on May 26, 2024

I guess my experience was a little different. I scratched my head for hours and then I remembered that the Auth0 tutorial makes you create an email whitelist rule. I totally forgot about this. The rule made the id_token undefined in the response. Once I deleted the rule, this example worked perfectly.

from example-auth0.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.