Stephan Richter
4 months ago
18 changed files with 469 additions and 209 deletions
@ -0,0 +1,5 @@ |
|||||||
|
# LightOIDC |
||||||
|
|
||||||
|
This aims to be a [specification] compliant OpenID connect provider with minimal footprint. |
||||||
|
|
||||||
|
[specification]: https://openid.net/specs/openid-connect-core-1_0.html |
@ -0,0 +1,43 @@ |
|||||||
|
<html> |
||||||
|
<head> |
||||||
|
<meta charset="utf-8"> |
||||||
|
<title>Light OIDC</title> |
||||||
|
<script src="scripts/common.js"></script> |
||||||
|
<script src="scripts/user.js"></script> |
||||||
|
<script src="scripts/edit_client.js"></script> |
||||||
|
<link rel="stylesheet" href="style.css" /> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
<nav></nav> |
||||||
|
<div id="content"> |
||||||
|
<h1>Client bearbeiten</h1> |
||||||
|
<fieldset class="wide"> |
||||||
|
<legend>Daten</legend> |
||||||
|
<table> |
||||||
|
<tr> |
||||||
|
<th>ID</th> |
||||||
|
<td><input type="text" disabled="true" id="client-id" /></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<th>Name</th> |
||||||
|
<td><input type="text" id="client-name" /></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<th>Geheimnis</th> |
||||||
|
<td><input type="text" id="client-secret" /></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<th>Weiterleitungs-URIs</th> |
||||||
|
<td> |
||||||
|
<textarea id="redirect-urls"></textarea> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td></td> |
||||||
|
<td><button type="button" id="button" onclick="updateClient();">Aktualisieren</button></td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</fieldset> |
||||||
|
</div> |
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,35 @@ |
|||||||
|
<html> |
||||||
|
<head> |
||||||
|
<meta charset="utf-8"> |
||||||
|
<title>Light OIDC</title> |
||||||
|
<script src="scripts/common.js"></script> |
||||||
|
<script src="scripts/login.js"></script> |
||||||
|
<link rel="stylesheet" href="style.css" /> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
<div id="content"> |
||||||
|
<h1>Anmeldung</h1> |
||||||
|
<fieldset id="login"> |
||||||
|
<legend>Zugangsdaten</legend> |
||||||
|
<table> |
||||||
|
<tr> |
||||||
|
<th>Benutzername</th> |
||||||
|
<td><input type="text" id="username" /></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<th>Passwort</th> |
||||||
|
<td><input type="password" id="password" onkeydown="keyDown()"/></td> |
||||||
|
</tr> |
||||||
|
<tr id="error" style="display: none"> |
||||||
|
<th>Fehler</th> |
||||||
|
<td class="warning">Anmeldung nicht erfolgreich!</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td></td> |
||||||
|
<td><button type="button" onClick="tryLogin()">Anmelden</button></td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</fieldset> |
||||||
|
</div> |
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,12 @@ |
|||||||
|
<html> |
||||||
|
<head> |
||||||
|
<meta charset="utf-8"> |
||||||
|
<title>Light OIDC</title> |
||||||
|
<script src="scripts/common.js"></script> |
||||||
|
<script src="scripts/logout.js"></script> |
||||||
|
<link rel="stylesheet" href="style.css" /> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
<div id="content">Sie werden abgemeldet…</div> |
||||||
|
</body> |
||||||
|
</html> |
@ -1,6 +1,5 @@ |
|||||||
<a href="index.html">Übersicht</a> |
<a href="index.html">Übersicht</a> |
||||||
<a href="clients.html" class="MANAGE_CLIENTS">Clients</a> |
<a href="clients.html" class="MANAGE_CLIENTS">Clients</a> |
||||||
<a href="users.html" class="MANAGE_USERS">Benutzer</a> |
<a href="users.html" class="MANAGE_USERS">Benutzer</a> |
||||||
<a href="https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth" target="_blank">Spec</a> |
|
||||||
<a href="settings.html">Einstellungen</a> |
<a href="settings.html">Einstellungen</a> |
||||||
<a href="logout.html">Ausloggen</a> |
<a href="logout.html">Abmelden</a> |
||||||
|
@ -0,0 +1,42 @@ |
|||||||
|
<html> |
||||||
|
<head> |
||||||
|
<meta charset="utf-8"> |
||||||
|
<title>Light OIDC</title> |
||||||
|
<script src="scripts/common.js"></script> |
||||||
|
<script src="scripts/user.js"></script> |
||||||
|
<script src="scripts/new_client.js"></script> |
||||||
|
<link rel="stylesheet" href="style.css" /> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
<nav></nav> |
||||||
|
<div id="content"> |
||||||
|
|
||||||
|
<h1>neuen Client hinzufügen</h1> |
||||||
|
<fieldset> |
||||||
|
<legend>Einstellungen</legend> |
||||||
|
<table> |
||||||
|
<tr> |
||||||
|
<th>Client-Id</th> |
||||||
|
<td><input type="text" size="50" id="client-id"></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<th>Client-Name</th> |
||||||
|
<td><input type="text" size="50" id="client-name"></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<th>Client-Geheimnus</th> |
||||||
|
<td><input type="text" size="50" id="client-secret"></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<th>Weiterleitungs-URLs</th> |
||||||
|
<td><textarea cols="50" rows="5" id="redirect-urls"></textarea></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td></td> |
||||||
|
<td><button id="button" type="button" onclick="addClient()">Client speichern</button></td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</fieldset> |
||||||
|
</div> |
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,76 @@ |
|||||||
|
<html> |
||||||
|
<head> |
||||||
|
<meta charset="utf-8"> |
||||||
|
<title>Light OIDC</title> |
||||||
|
<script src="scripts/common.js"></script> |
||||||
|
<script src="scripts/user.js"></script> |
||||||
|
<script src="scripts/settings.js"></script> |
||||||
|
<link rel="stylesheet" href="style.css" /> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
<nav></nav> |
||||||
|
<div id="content"> |
||||||
|
<h1>Einstellungen</h1> |
||||||
|
<form> |
||||||
|
<fieldset> |
||||||
|
<legend> |
||||||
|
Benutzer |
||||||
|
</legend> |
||||||
|
<table> |
||||||
|
<tr> |
||||||
|
<th>Benutzername</th> |
||||||
|
<td><input id="username" type="text"></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<th>E-Mail</th> |
||||||
|
<td><input id="email" type="email"></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<th>ID</th> |
||||||
|
<td><input id="uuid" type="text" disabled="true"></td> |
||||||
|
</tr> |
||||||
|
<tr id="update_error" style="display: none"> |
||||||
|
<th>Fehler</th> |
||||||
|
<td class="warning">Aktualisieren der Einstellungen fehlgeschlagen!</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td></td> |
||||||
|
<td><button id="updateBtn" type="button" onClick="update()">Aktualisieren</button></td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</fieldset> |
||||||
|
<fieldset> |
||||||
|
<legend> |
||||||
|
Passwort |
||||||
|
</legend> |
||||||
|
<table> |
||||||
|
<tr> |
||||||
|
<th>altes Passwort</th> |
||||||
|
<td><input id="oldpass" type="password"></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<th>Neues Passwort</th> |
||||||
|
<td><input id="newpass1" type="password"></td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<th>Passwort wiederholen</th> |
||||||
|
<td><input id="newpass2" type="password" onkeydown="passKeyDown()"></td> |
||||||
|
</tr> |
||||||
|
<tr id="wrong_password" style="display: none"> |
||||||
|
<th>Error</th> |
||||||
|
<td class="warning">Wrong password!</td> |
||||||
|
</tr> |
||||||
|
<tr id="password_mismatch" style="display: none"> |
||||||
|
<th>Fehler</th> |
||||||
|
<td class="warning">Passwort und Wiederholung stimmen nicht überein!</td> |
||||||
|
</tr> |
||||||
|
<tr> |
||||||
|
<td></td> |
||||||
|
<td><button id="passBtn" type="button" onClick="updatePass()">Aktualisieren</button></td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</fieldset> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
</body> |
||||||
|
</html> |
@ -1,6 +1,5 @@ |
|||||||
<a href="index.html">Dashboard</a> |
<a href="index.html">Dashboard</a> |
||||||
<a href="clients.html" class="MANAGE_CLIENTS">Clients</a> |
<a href="clients.html" class="MANAGE_CLIENTS">Clients</a> |
||||||
<a href="users.html" class="MANAGE_USERS">Users</a> |
<a href="users.html" class="MANAGE_USERS">Users</a> |
||||||
<a href="https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth" target="_blank">Spec</a> |
|
||||||
<a href="settings.html">Settings</a> |
<a href="settings.html">Settings</a> |
||||||
<a href="logout.html">Logout</a> |
<a href="logout.html">Logout</a> |
||||||
|
@ -1,74 +1,76 @@ |
|||||||
<html> |
<html> |
||||||
<head> |
<head> |
||||||
<meta charset="utf-8"> |
<meta charset="utf-8"> |
||||||
<title>Light OIDC</title> |
<title>Light OIDC</title> |
||||||
<script src="scripts/common.js"></script> |
<script src="scripts/common.js"></script> |
||||||
<script src="scripts/user.js"></script> |
<script src="scripts/user.js"></script> |
||||||
<script src="scripts/settings.js"></script> |
<script src="scripts/settings.js"></script> |
||||||
<link rel="stylesheet" href="style.css" /> |
<link rel="stylesheet" href="style.css" /> |
||||||
</head> |
</head> |
||||||
<body> |
<body> |
||||||
<nav></nav> |
<nav></nav> |
||||||
<h1>Settings</h1> |
<div id="content"> |
||||||
<form> |
<h1>Settings</h1> |
||||||
<fieldset> |
<form> |
||||||
<legend> |
<fieldset> |
||||||
Basic settings |
<legend> |
||||||
</legend> |
User settings |
||||||
<table> |
</legend> |
||||||
<tr> |
<table> |
||||||
<th>User name</th> |
<tr> |
||||||
<td><input id="username" type="text"></td> |
<th>User name</th> |
||||||
</tr> |
<td><input id="username" type="text"></td> |
||||||
<tr> |
</tr> |
||||||
<th>Email</th> |
<tr> |
||||||
<td><input id="email" type="email"></td> |
<th>Email</th> |
||||||
</tr> |
<td><input id="email" type="email"></td> |
||||||
<tr> |
</tr> |
||||||
<th>ID</th> |
<tr> |
||||||
<td><input id="uuid" type="text" disabled="true"></td> |
<th>ID</th> |
||||||
</tr> |
<td><input id="uuid" type="text" disabled="true"></td> |
||||||
<tr id="update_error" style="display: none"> |
</tr> |
||||||
<th>Error</th> |
<tr id="update_error" style="display: none"> |
||||||
<td class="warning">Failed to update settings!</td> |
<th>Error</th> |
||||||
</tr> |
<td class="warning">Failed to update settings!</td> |
||||||
<tr> |
</tr> |
||||||
<td></td> |
<tr> |
||||||
<td><button id="updateBtn" type="button" onClick="update()">Update</button></td> |
<td></td> |
||||||
</tr> |
<td><button id="updateBtn" type="button" onClick="update()">Update</button></td> |
||||||
</table> |
</tr> |
||||||
</fieldset> |
</table> |
||||||
<fieldset> |
</fieldset> |
||||||
<legend> |
<fieldset> |
||||||
Password |
<legend> |
||||||
</legend> |
Password |
||||||
<table> |
</legend> |
||||||
<tr> |
<table> |
||||||
<th>Old password</th> |
<tr> |
||||||
<td><input id="oldpass" type="password"></td> |
<th>Old password</th> |
||||||
</tr> |
<td><input id="oldpass" type="password"></td> |
||||||
<tr> |
</tr> |
||||||
<th>New Password</th> |
<tr> |
||||||
<td><input id="newpass1" type="password"></td> |
<th>New Password</th> |
||||||
</tr> |
<td><input id="newpass1" type="password"></td> |
||||||
<tr> |
</tr> |
||||||
<th>Repeat Password</th> |
<tr> |
||||||
<td><input id="newpass2" type="password" onkeydown="passKeyDown()"></td> |
<th>Repeat Password</th> |
||||||
</tr> |
<td><input id="newpass2" type="password" onkeydown="passKeyDown()"></td> |
||||||
<tr id="wrong_password" style="display: none"> |
</tr> |
||||||
<th>Error</th> |
<tr id="wrong_password" style="display: none"> |
||||||
<td class="warning">Wrong password!</td> |
<th>Error</th> |
||||||
</tr> |
<td class="warning">Wrong password!</td> |
||||||
<tr id="password_mismatch" style="display: none"> |
</tr> |
||||||
<th>Error</th> |
<tr id="password_mismatch" style="display: none"> |
||||||
<td class="warning">Mismatch between new password and repetition!</td> |
<th>Error</th> |
||||||
</tr> |
<td class="warning">Mismatch between new password and repetition!</td> |
||||||
<tr> |
</tr> |
||||||
<td></td> |
<tr> |
||||||
<td><button id="passBtn" type="button" onClick="updatePass()">Update</button></td> |
<td></td> |
||||||
</tr> |
<td><button id="passBtn" type="button" onClick="updatePass()">Update</button></td> |
||||||
</table> |
</tr> |
||||||
</fieldset> |
</table> |
||||||
</form> |
</fieldset> |
||||||
</body> |
</form> |
||||||
|
</div> |
||||||
|
</body> |
||||||
</html> |
</html> |
Loading…
Reference in new issue