-
Couldn't load subscription status.
- Fork 496
Closed
Description
when "sign in as" is used from user management, it triggers the application configured callback:
http://localhost:9000/auth0-callback#access_token=some-access-token&id_token=some-id-token&scope=openid&expires_in=86400&token_type=Bearer
notice, there is no state.
but in auth0.js v9 we have:
auth0.js/src/web-auth/index.js
Lines 180 to 191 in 2ca7ccf
| WebAuth.prototype.validateAuthenticationResponse = function(options, parsedHash, cb) { | |
| var _this = this; | |
| var state = parsedHash.state; | |
| var transaction = this.transactionManager.getStoredTransaction(state); | |
| var transactionState = options.state || (transaction && transaction.state) || null; | |
| var transactionStateMatchesState = transactionState === state; | |
| if (!state || !transactionStateMatchesState) { | |
| return cb({ | |
| error: 'invalid_token', | |
| errorDescription: '`state` does not match.' | |
| }); | |
| } |
it always trips "state does not match"
fengthedroid and willemmuller
Metadata
Metadata
Assignees
Labels
No labels