Skip to content

Commit

Permalink
feat: suppression des attributs sur la page après connexion
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancailbourdin committed Nov 7, 2024
1 parent b1d47ab commit 2f04261
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/main/resources/custom_messages.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
screen.interrupt.redirect=You should be automatically redirected. If not, click on the button below:
screeen.pac4j.unauthz.exception.PrincipalException=You are not authorized to access this service. This may be due either to insufficient permissions or to an access restriction based on the date.
screeen.pac4j.unauthz.exception.PrincipalException=You are not authorized to access this service. This may be due either to insufficient permissions or to an access restriction based on the date.
screen.success.success-no-attributes=You have successfully logged into the Central Authentication Service. However, you are seeing \
this page because CAS does not know about your target destination and how to get you there.
4 changes: 3 additions & 1 deletion src/main/resources/custom_messages_fr.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
screen.interrupt.redirect=Vous devriez être automatiquement redirigé. Si ce n'est pas le cas, vous pouvez cliquer sur le bouton ci-dessous :
screeen.pac4j.unauthz.exception.PrincipalException=Vous n'êtes pas autorisé à accéder à ce service. Cela peut être dû soit à des permissions insuffisantes soit à une restriction d'accès par date.
screeen.pac4j.unauthz.exception.PrincipalException=Vous n'êtes pas autorisé à accéder à ce service. Cela peut être dû soit à des permissions insuffisantes soit à une restriction d'accès par date.
screen.success.success-no-attributes=Vous vous êtes authentifié(e) auprès du Service Central d'Authentification. Toutefois, vous voyez \
cette page, car CAS ne connait pas votre destination finale ni comment vous y rediriger.
39 changes: 39 additions & 0 deletions src/main/resources/templates/login/casGenericSuccessView.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">

<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>

<title th:text="#{screen.success.header}">Generic Success View</title>
<link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag"/>
</head>

<body>
<main class="container mt-3 mb-3">
<div layout:fragment="content" class="row">
<script>
function jqueryReady() {
$('table').DataTable();
}
</script>
<div class="w-100 m-auto mdc-card card p-4">
<h2>
<i class="mdi mdi-door-open fas fa-door-open" aria-hidden="true"></i>
<span th:utext="#{screen.success.header}">Log In Successful</span>
<span id="principalId" th:utext="${authentication.principal.id}" style="display:none;"/>
</h2>

<p th:utext="#{screen.success.success-no-attributes}">You, <strong>username</strong>, have successfully logged into the Central Authentication
Service.
However, you are seeing this page because CAS does not know about your target destination and how
to get you there. Examine the authentication request again and make sure a target service/application that is authorized and registered with CAS is specified.</p>

<p id="view-genericsuccess-security" th:utext="#{screen.success.security}">
When you are finished, for security reasons, please <a href="logout">log out</a> and exit your web browser.
</p>
</div>

</div>
</main>
</body>
</html>

0 comments on commit 2f04261

Please sign in to comment.