[context] Authentication callback with IE
See original GitHub issueIssue and Steps to Reproduce
When using IE 11 to perform authentication.
Once the user has submitted the third-party login form with valid credentials, the browser redirects the user to a /authentication/not-authenticated?message=No matching state found in storage
URL.
A message is displayed : Authentification Vous n’êtes pas authentifié.
However, the access_token has been successfully retrieved as it is stored in the sessionStorage and added in API calls.
If the user types the requested URL, then the library works as expected.
Versions
- oidc-client : 1.5.1
- @axa-fr/react-oidc-context : 1.2.0
- @axa-fr/react-oidc-context-fetch : 1.2.0
- isomorphic-fetch : 2.2.1
- es6-promise : 4.2.6
Screenshots
Expected
- The browser should redirect to the URL called before the authentication
- A valid access_token should be present in the sessionStorage
Actual
- The browser redirect to
/authentication/not-authenticated?message=No matching state found in storage
and display Vous n’êtes pas authentifié. - A valid access_token is present in the sessionStorage
- The browser console display the following error message :
OidcClient.processSigninResponse: No matching state found in storage
Additional Details
- Workflow
Access to a URL which need authentication
Browser redirects the user to the SSO Login form
User login with valid credentials
Brower redirects to
/authentication/callback
URL with params
- scope
- realm
- state
- access_token (valid access_token)
- token_type
- expires_in
Browser redirects to
/authentication/not-authenticated?message=No matching state found in storage
- OIDC configuration
"oidc": {
"client_id": "xxxx",
"redirect_uri": "http://localhost:3000/authentication/callback",
"response_type": "token",
"post_logout_redirect_uri": "http://localhost:3000/",
"scope": "openid profile email",
"authority": "xxx",
"silent_redirect_uri": "http://localhost:3000/authentication/silent_callback",
"automaticSilentRenew": false,
"loadUserInfo": false,
"triggerAuthFlow": false
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:20 (17 by maintainers)
Top GitHub Comments
It should be fixed. By the last release. @Sebo100 do you confirm it is working now?
Im still having this issue come up with I am trying to format my app to work on ie11 Has anyone found a solution to this?