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

Commit 168292a

Browse files
authored
Merge pull request #188 from AzureAD/release-1.2.1
ADAL Python 1.2.1
2 parents b99c5b4 + 515024e commit 168292a

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

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.0'
30+
__version__ = '1.2.1'
3131

3232
import logging
3333

adal/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ class Saml(object):
173173

174174
TokenTypeV1 = 'urn:oasis:names:tc:SAML:1.0:assertion'
175175
TokenTypeV2 = 'urn:oasis:names:tc:SAML:2.0:assertion'
176+
OasisWssSaml11TokenProfile11 = "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1"
177+
OasisWssSaml2TokenProfile2 = "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0"
176178

177179

178180
class XmlNamespaces(object):

adal/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def set_logging_options(options=None):
4242
4343
Basic Usages::
4444
>>>adal.set_logging_options({
45-
>>> 'level': 'DEBUG'
45+
>>> 'level': 'DEBUG',
4646
>>> 'handler': logging.FileHandler('adal.log')
4747
>>>})
4848
'''

adal/token_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ def add_parameter_if_available(parameters, key, value):
5555

5656
def _get_saml_grant_type(wstrust_response):
5757
token_type = wstrust_response.token_type
58-
if token_type == SAML.TokenTypeV1:
58+
if token_type == SAML.TokenTypeV1 or token_type == SAML.OasisWssSaml11TokenProfile11:
5959
return OAUTH2_GRANT_TYPE.SAML1
6060

61-
elif token_type == SAML.TokenTypeV2:
61+
elif token_type == SAML.TokenTypeV2 or token_type == SAML.OasisWssSaml2TokenProfile2:
6262
return OAUTH2_GRANT_TYPE.SAML2
6363

6464
else:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
requests==2.0.0
1+
requests==2.20.0
22
PyJWT==1.0.0
33
#need 2.x for Python3 support
44
python-dateutil==2.1.0

0 commit comments

Comments
 (0)