We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42b9fc1 + afd5963 commit c0e1da9Copy full SHA for c0e1da9
msal/wstrust_response.py
@@ -88,5 +88,7 @@ def parse_token_by_re(raw_response): # Returns the saml:assertion
88
token_types = findall_content(rstr, "TokenType")
89
tokens = findall_content(rstr, "RequestedSecurityToken")
90
if token_types and tokens:
91
- return {"token": tokens[0].encode('us-ascii'), "type": token_types[0]}
+ # Historically, we use "us-ascii" encoding, but it should be "utf-8"
92
+ # https://stackoverflow.com/questions/36658000/what-is-encoding-used-for-saml-conversations
93
+ return {"token": tokens[0].encode('utf-8'), "type": token_types[0]}
94
0 commit comments