forked from OpenConext/Mujina
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/frontend-improvements'
- Loading branch information
Showing
3 changed files
with
59 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,75 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<html lang="en" xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<title>Login page</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" type="text/css" href="/main.css"/> | ||
<script th:src="@{/main.js}"></script> | ||
</head> | ||
<body> | ||
<section id="explanation" class="explain hide"> | ||
<section class="container"> | ||
<section class="title"> | ||
<p>SAML Attribute Manipulation</p> | ||
<a href="/close" id="close" class="close">☓</a> | ||
</section> | ||
<section class="explanation-content"><p> | ||
When the Mujina IDP sends a SAML assertion back to the service provider, all the attributes will be added as | ||
SAML AttributeStatement elements. | ||
</p> | ||
<aside id="explanation" class="explain hide"> | ||
<div class="container"> | ||
<header class="title"> | ||
<h2>SAML Attribute Manipulation</h2> | ||
<a href="/close" id="close" class="close"><span class="sr-only">Close </span>☓</a> | ||
</header> | ||
<div class="explanation-content"> | ||
<p> | ||
When the Mujina IDP sends a SAML assertion back to the service provider, all the attributes will be | ||
added as SAML AttributeStatement elements. | ||
</p> | ||
<p> | ||
Based on the Attribute Release Policy of the service provider they will be included in the authenticated | ||
user identity. | ||
</p> | ||
<p>If you want to add multiple values for one attribute - for example isMemberOf - then add them multiple | ||
times.</p> | ||
<p></p> | ||
times. | ||
</p> | ||
|
||
<hr/> | ||
|
||
<p>If you add attributes and check the 'Persist me' box then the attributes will be saved under the 'Username' | ||
you have entered. </p> | ||
<p>On subsequent logins with the same username the same set of attributes will be send to the Service | ||
Provider.</p> | ||
</section> | ||
|
||
</section> | ||
</section> | ||
<p> | ||
If you add attributes and check the 'Persist me' box then the attributes will be saved under the | ||
'Username' you have entered. | ||
</p> | ||
<p> | ||
On subsequent logins with the same username the same set of attributes will be send to the Service | ||
Provider. | ||
</p> | ||
</div> | ||
</div> | ||
</aside> | ||
|
||
<section class="login-container"> | ||
<section class="login"> | ||
<main class="login-container"> | ||
<div class="login"> | ||
<h1>Mujina Identity Provider</h1> | ||
<p th:if="${param.error}" class="error">Wrong user or password</p> | ||
<form class="login-form" th:action="@{/login}" method="post"> | ||
<label for="username" class="sr-only">Username</label> | ||
<input type="text" id="username" name="username" autofocus="autofocus" placeholder="Username"/> | ||
<label for="password" class="sr-only">Password</label> | ||
<input type="password" id="password" name="password" placeholder="Password"/> | ||
<input class="button" type="submit" value="Log in"/> | ||
<div> | ||
<input id="persist-me" name="persist-me" type="checkbox"/> | ||
<label class="persist-me" for="persist-me">Persist me?</label> | ||
</div> | ||
|
||
<section class="add-attribute"> | ||
<div class="add-attribute"> | ||
<label for="add-attribute" class="sr-only">Select attributes</label> | ||
<select class="attribute-select" id="add-attribute"> | ||
<option value="Add attribute...">Add attribute...</option> | ||
<option th:each="attr : ${samlAttributes}" th:value="${attr.get('name')}" | ||
th:text="${attr.get('id')}" | ||
th:attr="data-multiplicity=${attr.get('multiplicity')}"></option> | ||
</select> | ||
<div class="help"><span class="explain-link">?</span></div> | ||
</section> | ||
<section id="attribute-list" class="attribute-list"></section> | ||
</div> | ||
<ul id="attribute-list" class="attribute-list"></ul> | ||
|
||
</form> | ||
</section> | ||
<a class="powered-by" href="https://openconext.org/" target="_blank">Copyright © 2018 OpenConext</a> | ||
</section> | ||
</div> | ||
<a class="powered-by" href="https://openconext.org/" target="_blank" rel="noreferrer noopener">Copyright © 2018 OpenConext</a> | ||
</main> | ||
</body> | ||
</html> |