Skip to content
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

fix(auth): fixes various Auth bugs. #287

Merged
merged 4 commits into from
Nov 3, 2017
Merged

fix(auth): fixes various Auth bugs. #287

merged 4 commits into from
Nov 3, 2017

Conversation

bojeil-google
Copy link
Contributor

Fixes verifyAssertion unrecoverable errors when returnIdpCredential is set to true.
In this case, the error code is returned along with the credential in the errorMessage without any
ID token/refresh token.

Catch, suppress/handle when localStorage is null or when localStorage.getItem
throws a security error due to access being disabled by the browser for whatever reason.

Fixes verifyAssertion unrecoverable errors when returnIdpCredential is set to true.
In this case, the error code is returned along with the credential in the errorMessage without any
ID token/refresh token.

Catch, suppress/handle when localStorage is null or when `localStorage.getItem`
throws a security error due to access being disabled by the browser for whatever reason.
@bojeil-google
Copy link
Contributor Author

This should fix the following 2 issues:
#280
#245

@jshcrowthe jshcrowthe requested a review from TMSCH as a code owner November 2, 2017 22:49
@firebase firebase deleted a comment from googlebot Nov 2, 2017
@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this State. It's up to you to confirm consent of the commit author(s) and merge this pull request when appropriate.

@bojeil-google bojeil-google merged commit 369b411 into master Nov 3, 2017
@jshcrowthe jshcrowthe deleted the auth-bug-fixes branch November 3, 2017 17:56
schmidt-sebastian pushed a commit that referenced this pull request Nov 3, 2017
Fixes verifyAssertion unrecoverable errors when returnIdpCredential is set to true.
In this case, the error code is returned along with the credential in the errorMessage without any
ID token/refresh token.

Catch, suppress/handle when localStorage is null or when `localStorage.getItem`
throws a security error due to access being disabled by the browser for whatever reason.
@firebase firebase locked and limited conversation to collaborators Oct 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants