Skip to content

Commit

Permalink
add default oidc login template (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Jul 2, 2024
1 parent 1119f8e commit ed7c83f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions projectroles/templates/projectroles/_oidc_login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{# Default OIDC login element shown if no custom template is provided #}

<div class="col-md-4 mx-auto mt-4">
<a role="button" class="btn btn-md btn-info btn-block"
id="sodar-login-oidc-link"
href="{% url 'social:begin' 'oidc' %}">
<i class="iconify" data-icon="mdi:login-variant"></i> OpenID Connect Login
</a>
</div>
2 changes: 2 additions & 0 deletions projectroles/templates/projectroles/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ <h2 class="sodar-pr-content-title">Login</h2>
{% template_exists template_include_path|add:'/_login_oidc.html' as tpl_oidc %}
{% if enable_oidc and tpl_oidc %}
{% include template_include_path|add:'/_login_oidc.html' %}
{% elif enable_oidc %}
{% include 'projectroles/_oidc_login.html' %} {# Defaut template #}
{% endif %}

{# Optional template for additional login page HTML #}
Expand Down

0 comments on commit ed7c83f

Please sign in to comment.