Auth0 Login Redirect Route
Use the redirect integration when the gateway should initiate login instead of the frontend hardcoding the authorize URL.
When to use this
What this does not do
Repo-grounded example
{
"authorizer": {
"type": "auth0",
"domain": "$env.AUTH0_DOMAIN",
"client_id": "$env.AUTH0_CLIENT_ID",
"client_secret": "$secrets.AUTH0_CLIENT_SECRET",
"redirect_uri": "https://api.example.com/api/v1/auth0/callback",
"callback_uri": "https://app.example.com/auth/callback",
"jwks_uri": "https://tenant.us.auth0.com/.well-known/jwks.json",
"scope": "openid profile email"
},
"paths": [
{
"method": "GET",
"path": "/api/v1/auth0/callback",
"integration": { "type": "auth0_callback" }
}
]
}Troubleshooting
Related docs
Last updated