aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/auth_login.html
blob: 113b9e0df6d24c82c443e8c33831e22e0a967158 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{% extends "base.html" %}

{% block fullbody %}
<div class="ui centered grid container">
<div class="eight wide column" style="font-size: 1.14285714rem;">

<h1>Login / Signup</h1>

<p>Select a provider below to create a Fatcat editor account or log back in.
Note that currently editor accounts are locked 1-to-1 with external identities.

<p>Before creating an account, please review our
<a href="https://guide.fatcat.wiki/policies.html">Norms and Policies</a>.

<br>
{% if config.IA_XAUTH_CLIENT_ID %}
<a href="/auth/ia/login">
<div class="ui segment attached">
  <h2 class="ui header">
    <img src="/static/ia_logo.png" style="width: 1.5em;">
    <div class="content">
      Internet Archive
      <div class="sub header">via email/password</div>
    </div>
  </h2>
</div>
</a>
{% else %}
<div class="ui segment attached">
  <h2 class="ui header">
    <i class="grey times circle icon"></i>
    <div class="content">
      Internet Archive
      <div class="sub header">not configured</div>
    </div>
  </h2>
</div>
{% endif %}

{# not implemented in login pass yet #}
{% if config.ORCID_CLIENT_ID %}
{# <a href="/auth/orcid/login"> #}
<div class="ui segment attached">
  <h2 class="ui header">
    {# <img src="/static/orcid_icon.png" style="width: 1.5em;"> #}
    <i class="grey times circle icon"></i>
    <div class="content">
      ORCiD
      {# <div class="sub header">via OpenID Connect</div> #}
      <div class="sub header">not implemented yet</div>
    </div>
  </h2>
</div>
{# </a> #}
{% endif %}

{% if config.WIKIPEDIA_CLIENT_ID %}
<a href="/auth/wikipedia/login">
<div class="ui segment attached">
  <h2 class="ui header">
    <i class="wikipedia w icon"></i>
    <div class="content">
      Wikipedia
      <div class="sub header">via OAuth</div>
    </div>
  </h2>
</div>
</a>
{% endif %}

{% if config.GITLAB_CLIENT_ID %}
<a href="/auth/gitlab/login">
<div class="ui segment attached">
  <h2 class="ui header">
    <i class="orange gitlab icon"></i>
    <div class="content">
      Gitlab
      <div class="sub header">via OAuth</div>
    </div>
  </h2>
</div>
</a>
{% endif %}

{% if config.GITHUB_CLIENT_ID %}
<a href="/auth/github/login">
<div class="ui segment attached">
  <h2 class="ui header">
    <i class="github icon"></i>
    <div class="content">
      Github
      <div class="sub header">via OpenID Connect</div>
    </div>
  </h2>
</div>
</a>
{% endif %}

{# alternative style
<br>
<button class="massive ui button fluid">
  <i class="gitlab icon orange"></i>
  Gitlab
  <small>via OpenID Connect</small>
</button>
#}

<br>
<p>Operators can also <a href="/auth/token_login">authenticate directly using
an auth token</a>.
<p>If you have problems getting logged in, please
<a href="mailto:webservices@archive.org">contact us</a>.

</div>
</div>
{% endblock %}