Comments (4)
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.
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.
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.
👍 thank you!
from knock.
Related Issues (20)
- Support rails 6 autoload zeitwerk HOT 7
- Allow multiple token lifetimes HOT 5
- boolan params on token_payload
- Rails6: [WARNING] Could not load generator "generators/knock/install_generator". HOT 3
- Response with Bad Credencials HOT 2
- Config the entity model to a boolean param
- Rails 6 | ArgumentError (Befor authenticate_user e process_action callback :has not been defined): HOT 2
- Starting with Rails 6 | uninitialized constant Knock::Authenticable HOT 10
- Zeitwerk::NameError HOT 1
- Failing tests / CI build (uninitialized constant Knock::InstallGenerator) HOT 1
- How to override methods using Knock with Rails 6
- Crash if token_secret_signature_key returns empty string HOT 1
- Rails 5.2 heroku Jwt Knock issue
- How to use the NullUser pattern with Knock? HOT 2
- Knock not working in production / staging but just fine in develepment env? HOT 1
- Is there any proper document to integrate with Auth0 HOT 2
- Setting token lifetime according to user field
- Knock not returning token on user sign up HOT 2
- No routes generated?
- Make unmaintained state better visible? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knock.