diff --git a/app.py b/app.py index aa9ddfb..6a1822f 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,3 @@ -import json import os from flask import Flask, request, redirect, session, make_response, render_template @@ -7,7 +6,7 @@ from onelogin.saml2.utils import OneLogin_Saml2_Utils app = Flask(__name__) app.config['SAML_PATH'] = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'config') -app.config['SECRET_KEY'] = 'onelogindemopytoolkit' +app.config['SECRET_KEY'] = 'onelogindemopy' def init_saml_auth(req): auth = OneLogin_Saml2_Auth(req, custom_base_path=app.config['SAML_PATH']) @@ -129,4 +128,4 @@ def metadata(): if __name__ == "__main__": - app.run(debug=True) + app.run(host='127.0.0.1', port=5000, debug=True) diff --git a/templates/base.html b/templates/base.html index 52beb06..0f6396c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,7 +5,7 @@ - A Python SAML Toolkit demo + A Python SAML demo @@ -18,7 +18,7 @@
-

A Python SAML Toolkit demo

+

A Python SAML demo

{% block content %}{% endblock %}