diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html index 84ed750..f9adf18 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html @@ -10,6 +10,7 @@ {% from "invenio_accounts/_macros.html" import render_field, form_errors %} +{%- from "invenio_oauthclient/_macros.html" import oauth_button %} {% block page_body %}
@@ -24,16 +25,31 @@ {%- endblock form_header %}
- {%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %} - - {% trans type='TUGRAZ' %} Log in with {{ type }}{% endtrans %} - - -
-
{{_ ("Or")}}
- {%- endif %} + {% if config.OAUTHCLIENT_REMOTE_APPS or config.SSO_SAML_IDPS %} +
+ {% for name in config.OAUTHCLIENT_REMOTE_APPS.keys() %} + {{ oauth_button(name, next=request.args.get('next')) }} + {% endfor %} +
+ {% for name in config.SSO_SAML_IDPS.keys() %} +
+ + + {{ + _('Sign in with %(title)s', title=config.SSO_SAML_IDPS[name]['title']|default("SAML", true)) + }} + +
+ {% endfor %} + {%- if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %} +
+ Or +
+ {%- endif %} + {% endif %} {%- block form_outer %} + {%- if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %} {%- with form = login_user_form %}
@@ -47,6 +63,7 @@
{%- endwith %} + {%- endif %} {%- endblock form_outer %}