fickit: Add dexidp on frontend
This commit is contained in:
parent
e48ee589e5
commit
75d288000f
7 changed files with 362 additions and 2 deletions
23
configs/dex-templates/templates/header.html
Normal file
23
configs/dex-templates/templates/header.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>{{ issuer }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="{{ url .ReqPath "static/main.css" }}" rel="stylesheet">
|
||||
<link href="{{ url .ReqPath "theme/styles.css" }}" rel="stylesheet">
|
||||
<link rel="icon" href="{{ url .ReqPath "theme/favicon.png" }}">
|
||||
</head>
|
||||
|
||||
<body class="theme-body">
|
||||
<div class="theme-navbar">
|
||||
<div class="theme-navbar__logo-wrap">
|
||||
<img class="theme-navbar__logo" src="{{ url .ReqPath logo }}">
|
||||
</div>
|
||||
<div class="theme-navbar__logo-wrap" style="text-align:right">
|
||||
<img class="theme-navbar__logo" src="../../img/epita.png">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dex-container">
|
||||
21
configs/dex-templates/templates/login.html
Normal file
21
configs/dex-templates/templates/login.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{{ template "header.html" . }}
|
||||
|
||||
<div class="theme-panel">
|
||||
<h2 class="theme-heading">
|
||||
Bienvenue au challenge Forensic !
|
||||
</h2>
|
||||
<div>
|
||||
{{ range $c := .Connectors }}
|
||||
<div class="theme-form-row">
|
||||
<a href="{{ $c.URL }}" target="_self">
|
||||
<button class="dex-btn theme-btn-provider">
|
||||
<span class="dex-btn-icon dex-btn-icon--{{ $c.Type }}"></span>
|
||||
<span class="dex-btn-text">Log in with {{ $c.Name }}</span>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ template "footer.html" . }}
|
||||
58
configs/dex-templates/templates/password.html
Normal file
58
configs/dex-templates/templates/password.html
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{{ template "header.html" . }}
|
||||
|
||||
<div class="theme-panel">
|
||||
<h2 class="theme-heading">
|
||||
Bienvenue au challenge Forensic !
|
||||
</h2>
|
||||
<form method="post" action="{{ .PostURL }}">
|
||||
<div class="theme-form-row">
|
||||
<div class="theme-form-label">
|
||||
<label for="userid">Votre équipe</label>
|
||||
</div>
|
||||
<select tabindex="1" required id="login" name="login" class="theme-form-input" autofocus>
|
||||
<option value="team01">0verfl0wl</option>
|
||||
<option value="team02">TeamDLS</option>
|
||||
<option value="team03">ESNArcotrafiquants</option>
|
||||
<option value="team04">Ingénieur Cyberdéfense</option>
|
||||
<option value="team05">StrawHats</option>
|
||||
<option value="team06">PoC INNOVATION</option>
|
||||
<option value="team07">root42</option>
|
||||
<option value="team08">Les Pires Hat</option>
|
||||
<option value="team09">Esaip</option>
|
||||
<option value="team10">Hack In Provence</option>
|
||||
<option value="team11">Sogeti Aces of spades</option>
|
||||
<option value="team12">DéfendonsEnsemble</option>
|
||||
<option value="team13">Linkbynet Cybersecurity</option>
|
||||
<option value="team14">Evil-Minded</option>
|
||||
<option value="team15">ID-IoT</option>
|
||||
<option value="team16">199</option>
|
||||
<option value="team17">Équipe supplémentaire 1</option>
|
||||
<option value="team18">Équipe supplémentaire 2</option>
|
||||
<option value="team19">Équipe supplémentaire 3</option>
|
||||
<option value="team20">Équipe supplémentaire 4</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="theme-form-row">
|
||||
<div class="theme-form-label">
|
||||
<label for="password">Mot de passe</label>
|
||||
</div>
|
||||
<input tabindex="2" required id="password" name="password" type="password" class="theme-form-input" placeholder="mot de passe" {{ if .Invalid }} autofocus {{ end }}/>
|
||||
</div>
|
||||
|
||||
{{ if .Invalid }}
|
||||
<div id="login-error" class="dex-error-box">
|
||||
Identifiants incorrects.
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<button tabindex="3" id="submit-login" type="submit" class="dex-btn theme-btn--primary">C'est parti !</button>
|
||||
|
||||
</form>
|
||||
{{ if .BackLink }}
|
||||
<div class="theme-link-back">
|
||||
<a class="dex-subtle-text" href="{{ .BackLink }}">Sélectionner une autre méthode d'authentification.</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ template "footer.html" . }}
|
||||
Reference in a new issue