Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit dd15994

Browse files
authored
Merge pull request #252 from AzureAD/release-1.2.7
Release 1.2.7
2 parents 51e591b + f78fa20 commit dd15994

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ This library, ADAL for Python, will no longer receive new feature improvements.
2020
--------------------|-----------------|---------------
2121
[![Build Status](https://travis-ci.org/AzureAD/azure-activedirectory-library-for-python.svg?branch=master)](https://travis-ci.org/AzureAD/azure-activedirectory-library-for-python) | [![Build Status](https://travis-ci.org/AzureAD/azure-activedirectory-library-for-python.svg?branch=dev)](https://travis-ci.org/AzureAD/azure-activedirectory-library-for-python) | [![Documentation Status](https://readthedocs.org/projects/adal-python/badge/?version=latest)](https://adal-python.readthedocs.io/en/latest/?badge=latest)
2222

23-
|[Getting Started](https://github.com/AzureAD/azure-activedirectory-library-for-python/wiki)| [Docs](https://aka.ms/aaddev)| [Python Samples](https://github.com/Azure-Samples?q=active-directory&language=python)| [Support](README.md#community-help-and-support)
24-
| --- | --- | --- | --- |
23+
|[Getting Started](https://github.com/AzureAD/azure-activedirectory-library-for-python/wiki)| [Docs](https://aka.ms/aaddev)| [Python Samples](https://github.com/Azure-Samples?q=active-directory&language=python)| [Support](README.md#community-help-and-support) | [Feedback](https://forms.office.com/r/wX0UuEF8kX)
24+
| --- | --- | --- | --- | --- |
2525

2626

2727
The ADAL for Python library enables python applications to authenticate with Azure AD and get tokens to access Azure AD protected web resources.
@@ -53,6 +53,9 @@ We leverage [Stack Overflow](https://stackoverflow.com/) to work with the commun
5353

5454
We recommend you use the "adal" tag so we can see it! Here is the latest Q&A on Stack Overflow for ADAL: [https://stackoverflow.com/questions/tagged/adal](https://stackoverflow.com/questions/tagged/adal)
5555

56+
## Submit Feedback
57+
We'd like your thoughts on this library. Please complete [this short survey.](https://forms.office.com/r/wX0UuEF8kX)
58+
5659
## Security Reporting
5760

5861
If you find a security issue with our libraries or services please report it to [[email protected]](mailto:[email protected]) with as much detail as possible. Your submission may be eligible for a bounty through the [Microsoft Bounty](https://aka.ms/bugbounty) program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly upon receiving the information. We encourage you to get notifications of when security incidents occur by visiting [this page](https://technet.microsoft.com/en-us/security/dd252948) and subscribing to Security Advisory Alerts.

adal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
# pylint: disable=wrong-import-position
2929

30-
__version__ = '1.2.6'
30+
__version__ = '1.2.7'
3131

3232
import logging
3333

adal/wstrust_response.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ def _parse_token_by_re(raw_response):
214214
token_types = findall_content(rstr, "TokenType")
215215
tokens = findall_content(rstr, "RequestedSecurityToken")
216216
if token_types and tokens:
217-
return tokens[0].encode('us-ascii'), token_types[0]
217+
# Historically, we use "us-ascii" encoding, but it should be "utf-8"
218+
# https://stackoverflow.com/questions/36658000/what-is-encoding-used-for-saml-conversations
219+
return tokens[0].encode('utf-8'), token_types[0]
218220

219221

220222
def parse(self):

0 commit comments

Comments
 (0)