Skip to content
Snippets Groups Projects
Commit 37da337b authored by Mart van Santen's avatar Mart van Santen
Browse files

Added comments and deleted non-needed files

parent e3d416f4
No related branches found
No related tags found
1 merge request!50Implemente basic flask + database APIs
Pipeline #9605 failed
......@@ -136,6 +136,11 @@ kratos:
}
# TODO: Email verification for now disabled. This need to be changed
# eventually. However, first the basic flow and sending out
# email notifications need to be fixed.
# This should be under "org.sh/kratos" in above schema
#
# "verification": {
# "via": "email"
# },
......@@ -153,6 +158,8 @@ kratos:
serve:
public:
# TODO: This is the development URL and needs to be replaced by
# something sensable by Flux.
base_url: http://localhost:8080
selfservice:
......@@ -167,6 +174,8 @@ kratos:
recovery:
enabled: true
lifespan: 15m
# TODO: Those UI URLS need to be changed once the final location
# is determined. Also they need to be configured by flux
ui_url: http://localhost:5000/recovery
login:
......
......@@ -20,7 +20,6 @@ class Config(object):
class ProductionConfig(Config):
DEBUG = False
......
<!doctype html>
<title>OAS authentication service</title>
<div style='margin: 0 auto ; width: 350px; padding:20px; border-style:solid; border-color:#6c757d; border-width: 1px; background-color: #f8f9fa; font-family: "Segoe UI", Roboto; font-family: "Helvetica Neue", Arial; font-family: "Noto Sans", sans-serif;'>
{% if logo %}
<div style="position:relative; width: 350px; height:100px">
<img style="overflow: auto; top: 0; left: 0; bottom: 0; right: 0; position: absolute; margin: auto;max-width: 300px; max-height: 100px" src="{{logo}}" alt="Logo of application"></img>
</div>
{% endif %}
<h1>Log in to {{ application_name }}</h1>
<form method="POST" action="/login">
{{ login_form.csrf_token }}
{{ login_form.challenge }}
{{ login_form.username(placeholder="Username", autofocus=true) }}<br>
<div style="margin-top:5px">{{ login_form.password(placeholder="Password") }}</div> <br>
{{ login_form.remember }}{{ login_form.remember.label }} <br>
<div style="margin-top:5px">{{ login_form.submit }}</div>
</form>
</div>
<!doctype html>
<title>OAS authentication service</title>
<div style='margin: 0 auto ; width: 350px; padding:20px; border-style:solid; border-color:#6c757d; border-width: 1px; background-color: #f8f9fa; font-family: "Segoe UI", Roboto; font-family: "Helvetica Neue", Arial; font-family: "Noto Sans", sans-serif;'>
{% if logo %}
<div style="position:relative; width: 350px; height:100px">
<img style="overflow: auto; top: 0; left: 0; bottom: 0; right: 0; position: absolute; margin: auto;max-width: 300px; max-height: 100px" src="{{logo}}" alt="Logo of application"></img>
</div>
{% endif %}
<h1>Log in to {{ application_name }}</h1>
<div style="width: 100%; margin-bottom: 5px; overflow: auto">
<div style="width:60%; float:left"><button id="continue" onclick="window.location.href = '/login?login_challenge={{ challenge }}&skip=true';">Continue with {{ username }}</button></div>
<div style="width:40%; float:left;"><button id="logout" onclick="window.location.href = '/login?login_challenge={{ challenge }}&logout=true';">Logout</button></div>
</div>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment