mirror of
https://github.com/kanidm/kanidm.git
synced 2025-05-30 04:43:55 +02:00
- Resolve an issue where oauth2 could trigger the login page to incorrectly redirect to an oauth2 application instead of apps - Add indication of what client application we are accessing if the session is not yet authenticated
34 lines
998 B
HTML
34 lines
998 B
HTML
(% extends "base.html" %)
|
|
|
|
(% block title %)Login(% endblock %)
|
|
|
|
(% block head %)
|
|
(% endblock %)
|
|
|
|
(% block body %)
|
|
<main id="main" class="form-signin m-auto align-items-center d-flex flex-column">
|
|
(% if display_ctx.domain_info.image().is_some() %)
|
|
<img src="/ui/images/domain"
|
|
alt="(( display_ctx.domain_info.display_name() ))" class="kanidm_logo" />
|
|
(% else %)
|
|
<img
|
|
src="/pkg/img/logo-square.svg?v=((crate::https::cache_buster::get_cache_buster_key()))"
|
|
alt="(( display_ctx.domain_info.display_name() ))" class="kanidm_logo" />
|
|
(% endif %)
|
|
<h3>Kanidm</h3>
|
|
(% if let Some(reauth) = display_ctx.reauth %)
|
|
<div class="alert alert-info" role="alert">
|
|
Reauthenticating as (( reauth.username )) to access (( reauth.purpose ))
|
|
</div>
|
|
(% else if let Some(oauth2) = display_ctx.oauth2 %)
|
|
<div class="alert alert-info" role="alert">
|
|
Authenticate to access (( oauth2.client_name ))
|
|
</div>
|
|
(% endif %)
|
|
<div>
|
|
(% block logincontainer %)
|
|
(% endblock %)
|
|
</div>
|
|
</main>
|
|
(% endblock %)
|