27 lines
639 B
Python
27 lines
639 B
Python
|
from flask import Flask, render_template
|
||
|
|
||
|
app = Flask(__name__)
|
||
|
app.config['SECRET_KEY'] = 'onelogindemopytoolkit'
|
||
|
|
||
|
@app.route("/", methods=['GET', 'POST'])
|
||
|
def index():
|
||
|
errors = []
|
||
|
error_reason = None
|
||
|
not_auth_warn = False
|
||
|
success_slo = False
|
||
|
attributes = False
|
||
|
paint_logout = False
|
||
|
return render_template(
|
||
|
'index.html',
|
||
|
errors=errors,
|
||
|
error_reason=error_reason,
|
||
|
not_auth_warn=not_auth_warn,
|
||
|
success_slo=success_slo,
|
||
|
attributes=attributes,
|
||
|
paint_logout=paint_logout
|
||
|
)
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
app.run(host='127.0.0.1', port=5001, debug=True)
|