Giter Site home page Giter Site logo

Comments (4)

nsarno avatar nsarno commented on August 28, 2024

It would be helpful if you could provide a failing request spec for this issue.

Also, could you link to the documentation explaining which claims are passed through the payload in your case?

It seems like you expect the payload to contain a field :email. Are you sure this is valid? When reading this, it seems like the user id is passed through the subject claim (i.e. payload["sub"]).

from knock.

brandonmanson avatar brandonmanson commented on August 28, 2024

Auth0 allows you to specify claims in this documentation. Here's what my payload looks like:

"payload: {"email"=>"[email protected]", "email_verified"=>true, "iss"=>"https://brandonmanson.auth0.com/", "sub"=>"auth0|57843c212f0e1ca74ee67b60", "aud"=>"PGQxxDeLQBkABM5Pg6v1lOZgz2tLcTlU", "exp"=>1469081229, "iat"=>1469045229}"

I was trying to use find_or_create_by with something other than payload["sub"] since I hadn't gotten that to work either.

I don't have a failing request spec yet. I am passing a valid token in an HTTP request from XCode Simulator. I'll come up with a way to mock that.

from knock.

nsarno avatar nsarno commented on August 28, 2024

I'll close this issue as it does not seem related to Knock directly but you can keep posting here and I'll be happy to help once we have a failing spec :)

from knock.

brandonmanson avatar brandonmanson commented on August 28, 2024

👍 thank you!

from knock.

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.