Comments (8)
@adamjmcgrath I ended up using https://github.com/auth0/node-jwks-rsa/tree/master/examples/express-demo , it works for my scenario. Thank you
from node-oauth2-jwt-bearer.
Hi @rashidmya - thanks for raising this
Failed to fetch authorization server metadata
Your error tells me that the url for your issuer is incorrect or your issuer doesn't provide authorization server metadata
Could you let me know what value you are providing for your issuerBaseURL?
from node-oauth2-jwt-bearer.
the value of my issuerBaseURL is my client url: http://localhost:8000
from node-oauth2-jwt-bearer.
Hi @rashidmya - Your issuer is your identity provider (eg your-tenant.auth0.com
)
from node-oauth2-jwt-bearer.
Hi @rashidmya - Your issuer is your identity provider (eg
your-tenant.auth0.com
)
Mate, Im having the same issue in express app
I tried with a combination of :
"audience": "https://MYAUDIENCE.au.auth0.com/api/v2/",
"issuerBaseURL": "https://TENANT.us.auth0.com",
The above did not work, I received:
{ "message": "no applicable key found in the JSON Web Key Set" }
So I tried the below:
"audience": "https://MYAUDIENCE.au.auth0.com/api/v2/",
"issuer": "https://TENANT.us.auth0.com",
"jwksUri": "https://TENANT.us.auth0.com/.well-known/jwks.json"
But I get:
{ "message": "Failed to fetch authorization server metadata" }
I'm not new to Auth0, have been successfully running production systems. But I created something from scratch for my personal project and its not working
from node-oauth2-jwt-bearer.
@meyvan - if you can share your value for TENANT
I might be able to investigate.
@rashidmya - let me know if updating issuerBaseURL
to your issuer worked for you and I'll close this issue
from node-oauth2-jwt-bearer.
@adamjmcgrath my tenant is dev-qnsy8uhz
. please let me know if I'm doing something wrong
from node-oauth2-jwt-bearer.
"issuerBaseURL": "https://TENANT.us.auth0.com",
@meyvan I'm able to fetch your authz server metadata using https://dev-qnsy8uhz.us.auth0.com/.well-known/openid-configuration
I noticed that you're mixing au.auth0.com
and us.auth0.com
in places, could you perhaps be using the au
one as your issuer by mistake? If not, then I can only assume your server is not connected to the internet?
from node-oauth2-jwt-bearer.
Related Issues (20)
- Proxy Configuraton Broken/HTTP(S) Agent not being passed on JWKSet Creation HOT 2
- [docs] 404 error in the GitHub Pages documentation when clicking on a class or an interface HOT 1
- "nbf" claim timestamp check failed HOT 1
- 500 Error thrown when deployed to GCP App Engine HOT 3
- Getting AssertionError You must provide a 'tokenSigningAlg' for validating symmetric algorithms despite not providing a secret key value pair. HOT 6
- Node 21.5 support HOT 4
- InvalidTokenError: Failed to fetch authorization server metadata HOT 5
- publicKey without discovery HOT 2
- Crashed my express server. HOT 2
- Is it possible to use this with JWE encrypted access token?
- Audience Checking shouldn't be forced
- Allow to specify the location of the token.
- Cloudflare/Workerd support
- Create a separate method to validate a jwt
- Allow better control for discovery endpoints to use HOT 1
- Document upgrade path from "express-jwt" + "jwks-rsa" HOT 1
- [example] How to write unit tests for our Express APIs with canned JWTs? HOT 1
- [express-oauth2-jwt-bearer] What is the best practice to allow request to go through despite token being unauthorized? HOT 4
- Unable to recovery from temporarily unavailable discovery document HOT 4
- [docs] API documentation of auth middleware should mention "req.auth"
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 node-oauth2-jwt-bearer.