auth0 / auth0-api-tokens Goto Github PK
View Code? Open in Web Editor NEWLibrary that given Auth0 global client credentials allows users to generate JWT tokens for API v2
License: MIT License
Library that given Auth0 global client credentials allows users to generate JWT tokens for API v2
License: MIT License
We have an auth0 application that works perfectly on node 4.2.4 and we recently when upgraded to node 6.2.2 breaks because of invalid token. A sample request that fails is:
❯❯❯ curl -iH "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Njg1MDY2OTIsInNjb3BlcyI6eyJ1c2VycyI6eyJhY3Rpb25zIjpbInJlYWQiXX19LCJqdGkiOiJmOTBiZWYxNzUwMWVkODYzY2Y5ZDgxODZhZThmNThjNyIsImV4cCI6MTQ2ODUxMDI5MiwiYXVkIjoiaEQycExGS1Zib2JmVXNld0tURDFYV2h2TmhGMlhzTjEifQ._Fb7Dyii61QPvSz5bkp2oqGWiq0Qn5R8zjBWhrh1U2A" https://cleansheet.auth0.com/api/v2/users
HTTP/1.1 401 Unauthorized
Date: Thu, 14 Jul 2016 14:50:47 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 192
Connection: keep-alive
WWW-Authenticate: Bearer error="Invalid signature received for JSON Web Token validation"
vary: origin
cache-control: no-cache
{"statusCode":401,"error":"Unauthorized","message":"Invalid signature received for JSON Web Token validation","attributes":{"error":"Invalid signature received for JSON Web Token validation"}}%
What I know at the moment is:
Please merge this PR asap.
#1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.