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

Commit

Permalink
Merge pull request #188 from AzureAD/release-1.2.1
Browse files Browse the repository at this point in the history
ADAL Python 1.2.1
  • Loading branch information
abhidnya13 authored Jan 25, 2019
2 parents b99c5b4 + 515024e commit 168292a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion adal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

# pylint: disable=wrong-import-position

__version__ = '1.2.0'
__version__ = '1.2.1'

import logging

Expand Down
2 changes: 2 additions & 0 deletions adal/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ class Saml(object):

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


class XmlNamespaces(object):
Expand Down
2 changes: 1 addition & 1 deletion adal/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def set_logging_options(options=None):
Basic Usages::
>>>adal.set_logging_options({
>>> 'level': 'DEBUG'
>>> 'level': 'DEBUG',
>>> 'handler': logging.FileHandler('adal.log')
>>>})
'''
Expand Down
4 changes: 2 additions & 2 deletions adal/token_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def add_parameter_if_available(parameters, key, value):

def _get_saml_grant_type(wstrust_response):
token_type = wstrust_response.token_type
if token_type == SAML.TokenTypeV1:
if token_type == SAML.TokenTypeV1 or token_type == SAML.OasisWssSaml11TokenProfile11:
return OAUTH2_GRANT_TYPE.SAML1

elif token_type == SAML.TokenTypeV2:
elif token_type == SAML.TokenTypeV2 or token_type == SAML.OasisWssSaml2TokenProfile2:
return OAUTH2_GRANT_TYPE.SAML2

else:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requests==2.0.0
requests==2.20.0
PyJWT==1.0.0
#need 2.x for Python3 support
python-dateutil==2.1.0
Expand Down

0 comments on commit 168292a

Please sign in to comment.