From 0840e5211309cd9e80ad7b2bbe82df3971423323 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 9 Apr 2019 17:17:31 -0700 Subject: crude mostly-working wikipedia (mediawiki) login --- python/fatcat_web/templates/auth_login.html | 30 ++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'python/fatcat_web/templates') diff --git a/python/fatcat_web/templates/auth_login.html b/python/fatcat_web/templates/auth_login.html index bcb11680..c63b4227 100644 --- a/python/fatcat_web/templates/auth_login.html +++ b/python/fatcat_web/templates/auth_login.html @@ -13,6 +13,7 @@ Note that currently editor accounts are locked 1-to-1 with external identities. Norms and Policies.
+{% if config.IA_XAUTH_CLIENT_ID %}

@@ -24,7 +25,19 @@ Note that currently editor accounts are locked 1-to-1 with external identities.

+{% else %} +
+

+ +
+ Internet Archive +
not configured
+
+

+
+{% endif %} +{% if config.ORCID_CLIENT_ID %}

@@ -36,42 +49,49 @@ Note that currently editor accounts are locked 1-to-1 with external identities.

+{% endif %} +{% if config.WIKIPEDIA_CLIENT_ID %}

- +
Wikipedia -
via OpenID Connect
+
via OAuth

+{% endif %} +{% if config.GITLAB_CLIENT_ID %}

Gitlab -
via OpenID Connect
+
via OAuth

+{% endif %} - +{% if config.GITHUB_CLIENT_ID %} +

- Google + Github
via OpenID Connect

+{% endif %} {# alternative style
-- cgit v1.2.3