← {{ _("Back to main page") }}
{%- block form_header %}{%- endblock form_header %}
{%- if _flash_html %}
{{ _flash_html }}
{%- endif %}
{% if config.SSO_SAML_IDPS %}
{% for name in config.SSO_SAML_IDPS.keys() %}
{% endfor %}
{% endif %}
{# OAuth SSO buttons #}
{%- if config.OAUTHCLIENT_REMOTE_APPS %}
{%- for name, app in config.OAUTHCLIENT_REMOTE_APPS.items() %}
{%- if _allowed is none or name in _allowed %}
{{ _('Log in with %(title)s', title=app['title']) }}
{%- if config.OVERRIDE_OAUTH_ICON %}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- endif %}
{% if config.EDUGAIN_LOGIN_ENABLED %}
{% set return_url = url_for('invenio_edugain.authn_request', next=next_url, _external=True) %}
{{ _("Log in with eduGAIN") }}
{% endif %}
{%- if _has_sso and config.ACCOUNTS_LOCAL_LOGIN_ENABLED %}
{{ _("Or") }}
{%- endif %}
{%- block form_outer %}
{%- set _a = config.get("OVERRIDE_LOGIN_OAUTH_PROVIDERS") %}
{%- set _s = config.OAUTHCLIENT_REMOTE_APPS and (_a is none or _a | length > 0) %}
{%- if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %}
{%- with form = login_user_form %}
{%- set accordion_active = "active" if form.errors else ("" if _s else "active") %}
{%- set has_above = _flash_html | default(false) or _s %}
{{ _("Log in with repository credentials") }}
{%- if security.recoverable %}
{%- endif %}
{%- endwith %}
{%- endif %}
{%- endblock form_outer %}