forked from BD-Python-PIP/code-examples-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmust_authenticate.html
More file actions
43 lines (38 loc) · 1.66 KB
/
must_authenticate.html
File metadata and controls
43 lines (38 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!-- extend base layout -->
{% extends "base.html" %}
{% block content %}
{% if chosen_api == "Monitor" %}
<div style="margin:1% 5%;">
{{ session["manifest"]["SupportingTexts"]["LoginPage"]["LoginHeader"] | safe }}
<form method="post" data-busy="form" action={{ url_for("ds.ds_login") }}>
<div class="form-group col-md-5">
<select class="form-control" id="auth_type" name="auth_type">
<option value="jwt">JSON Web Token</option>
</select>
<p class="lead" style="padding-top: .5rem;">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
<button type="submit" class="btn btn-docu">{{ session["manifest"]["SupportingTexts"]["LoginPage"]["LoginButton"] }}</button>
</p>
</div>
</form>
<hr class="my-4">
</div>
{% else %}
<div style="margin:1% 5%;">
{{ session["manifest"]["SupportingTexts"]["LoginPage"]["LoginHeader"] | safe }}
<form method="post" data-busy="form" action={{ url_for("ds.ds_login") }}>
<div class="form-group col-md-5">
<select class="form-control" id="auth_type" name="auth_type">
<option value="code_grant">Authorization Code Grant</option>
<option value="jwt">JSON Web Token</option>
</select>
<p class="lead" style="padding-top: .5rem;">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
<button type="submit" class="btn btn-docu">{{ session["manifest"]["SupportingTexts"]["LoginPage"]["LoginButton"] }}</button>
</p>
</div>
</form>
<hr class="my-4">
</div>
{% endif %}
{% endblock %}