-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Checks for IE11 localStorage #54
Conversation
48ef84c
to
2777a9a
Compare
Resolves: OKTA-105205
2777a9a
to
0ff509f
Compare
sessionStorage.clear(); | ||
return oauthUtil.getWellKnown(test.oa) | ||
.then(function() { | ||
return oauthUtil.getWellKnown(test.oa); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we making the getWellKnown call twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not necessary. I didn't remove it after a copy/paste from another test. Will remove
'test-idToken': tokens.standardIdTokenParsed | ||
}); | ||
}); | ||
it('defaults to cookieStorage if localStorage nor sessionStorage is available', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: "neither localStorage..." or "localStorage and sessionStorage are not..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small updates to the README
localStorage and sessionStorage aren't available in some scenarios on IE11. This commit handles those scenarios by first attempting to fallback to sessionStorage, then cookies if sessionStorage doesn't exist.
Tested with widget in IE11 after starting using these instructions:
![screen shot 2016-12-20 at 1 59 38 pm](https://cloud.githubusercontent.com/assets/6387101/21363977/e113b54e-c6bc-11e6-810e-0bd3412ee6d1.png)
Resolves: OKTA-105205