This commit is contained in:
Kriss 2024-06-26 20:08:09 +02:00
parent 9013f8ce8d
commit 66f14072ce

6
app.py
View File

@ -8,6 +8,12 @@ app = Flask(__name__)
app.config['SAML_PATH'] = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'config')
app.config['SECRET_KEY'] = 'onelogindemopy'
# TODO call dummy-server
# TODO add email in claims
# TODO reuse token_data display from client-oidc
def init_saml_auth(req):
auth = OneLogin_Saml2_Auth(req, custom_base_path=app.config['SAML_PATH'])
return auth