Skip to content

Commit

Permalink
fix issue #19
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasDOTwtf committed Mar 27, 2018
1 parent af68ae3 commit 58f0628
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
from distutils.version import StrictVersion
from datetime import datetime,timedelta
from threading import Thread
from onelogin.saml2.auth import OneLogin_Saml2_Auth
from onelogin.saml2.utils import OneLogin_Saml2_Utils
from onelogin.saml2.settings import OneLogin_Saml2_Settings
from onelogin.saml2.idp_metadata_parser import OneLogin_Saml2_IdPMetadataParser

idp_timestamp = datetime(1970,1,1)
idp_data = None
if app.config['SAML_ENABLED']:
from onelogin.saml2.auth import OneLogin_Saml2_Auth
from onelogin.saml2.utils import OneLogin_Saml2_Utils
from onelogin.saml2.settings import OneLogin_Saml2_Settings
from onelogin.saml2.idp_metadata_parser import OneLogin_Saml2_IdPMetadataParser
idp_timestamp = datetime(1970,1,1)
idp_data = None
idp_data = OneLogin_Saml2_IdPMetadataParser.parse_remote(app.config['SAML_METADATA_URL'])
if idp_data == None:
print('SAML: IDP Metadata initial load failed')
Expand Down

0 comments on commit 58f0628

Please sign in to comment.