You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 25, 2020. It is now read-only.
I'm having the most difficult time getting the authorization flow working with Auth0.
I tried first the examples provided by the Auth0 site to integrate the authentication with my SPA, which works fine, but when I use aurelia-authentication plugin using the same config, it fails.
The flow stops at the /authorize endpoint
If I set the responseType = 'token', I get the following error in the console: Unhandled rejection TypeError: Cannot read property 'token' of null
Other attempts: responseType = 'token id_token' gives me this error: Unhandled rejection Error: Only 'token' responseType is supported
responseType = 'token%20id_token' results in /authroize to return HTTP 501
I'm having the most difficult time getting the authorization flow working with Auth0.
I tried first the examples provided by the Auth0 site to integrate the authentication with my SPA, which works fine, but when I use aurelia-authentication plugin using the same config, it fails.
The flow stops at the
/authorize
endpointIf I set the
responseType = 'token'
, I get the following error in the console:Unhandled rejection TypeError: Cannot read property 'token' of null
Other attempts:
responseType = 'token id_token'
gives me this error:Unhandled rejection Error: Only 'token' responseType is supported
responseType = 'token%20id_token'
results in/authroize
to return HTTP 501If I change the line
aurelia-authentication/src/authLock.js
Lines 63 to 64 in 9ae76ac
opts.auth.responseType = provider.responseType.replace('%20', ' ');
It seems to work.
/authorize
then returns HTTP 200Should the following if-statement here also include to check responseType === 'token id_token'?
aurelia-authentication/src/authLock.js
Lines 93 to 96 in 9ae76ac
Or am I missing something here?
I found this auth0/lock#809, indicating responseType = 'token id_token' is now mandatory?
AuthConfig:
The text was updated successfully, but these errors were encountered: