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 base64 decoding to properly handle claims with unicode characters such as Japanese #1036

Merged
merged 1 commit into from
Oct 9, 2019

Conversation

jasonnutter
Copy link
Contributor

@jasonnutter jasonnutter commented Oct 7, 2019

Our base64 decoding was not properly handling when STS generated an id_token for a user with Japanese characters, due to unicode characters. Example id_token included as a test case.

Repro by creating a user with a name with unicode characters (such as those in the test case) and having them sign into the Vanilla JS sample.

Fixes: #985

@jasonnutter jasonnutter removed the request for review from sameerag October 8, 2019 21:57
@jasonnutter jasonnutter merged commit de033db into dev Oct 9, 2019
@valeeum
Copy link

valeeum commented Oct 15, 2019

Any idea when this fix will be deployed to master?

@jasonnutter
Copy link
Contributor Author

@valeeum @nakawankuma Please try msal@1.2.0-beta.1 and let us know if it fixes the issue.

@htthao
Copy link

htthao commented Nov 14, 2019

@jasonnutter Please release this merged!

@jasonnutter
Copy link
Contributor Author

@htthao This is available in the beta version noted above. 1.2.0 will be released soon as a stable version, but for now you can try the beta version.

@sameerag sameerag deleted the decode-base64-fix-unicode branch November 10, 2020 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unicode string(japanese-strting) use atob is getting error .
6 participants