summaryrefslogtreecommitdiff
path: root/bin/idp
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-03-26 16:16:51 -0600
committermo khan <mo@mokhan.ca>2025-03-26 16:16:51 -0600
commit739ff3c99773e1310f403843fe5fac8059fb9fe6 (patch)
treefa296cc5de62737a4829f5cde3faec0152ee561f /bin/idp
parent2e636ea73e44a84dd2be64c1e199f29fb2236a1d (diff)
feat: add nav to idp pages
Diffstat (limited to 'bin/idp')
-rwxr-xr-xbin/idp24
1 files changed, 18 insertions, 6 deletions
diff --git a/bin/idp b/bin/idp
index afef32d..b9c132d 100755
--- a/bin/idp
+++ b/bin/idp
@@ -217,7 +217,7 @@ module Authn
<!doctype html>
<html lang="en" data-theme="light">
<head>
- <title>UI</title>
+ <title>IdP</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
@@ -230,10 +230,20 @@ module Authn
<li><strong>IdP</strong></li>
</ul>
</nav>
+
<form id="login-form" action="/sessions" method="post">
- <input type="input" placeholder="Username" id="username" name="username" value="" />
+ <fieldset>
+ <label>
+ Username
+ <input type="input" placeholder="Username" id="username" name="username" value="" />
+ </label>
+ <label>
+ Password
+ <input type="password" placeholder="Password" id="password" name="password" value="" />
+ </label>
+ </fieldset>
+
<input type="hidden" name="redirect_back" value="<%= request.params["redirect_back"] %>" />
- <input type="password" placeholder="Password" id="password" name="password" value="" />
<input type="submit" id="login-button" value="Login" />
</form>
</main>
@@ -319,7 +329,7 @@ module Authn
<!doctype html>
<html lang="en" data-theme="light">
<head>
- <title>UI</title>
+ <title>IdP</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
@@ -632,7 +642,7 @@ module Authz
<!doctype html>
<html lang="en" data-theme="light">
<head>
- <title>UI</title>
+ <title>IdP</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
@@ -724,7 +734,7 @@ class IdentityProvider
<!doctype html>
<html lang="en" data-theme="light">
<head>
- <title>UI</title>
+ <title>IdP</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
@@ -737,6 +747,8 @@ class IdentityProvider
<li><strong>IdP</strong></li>
</ul>
<ul>
+ <li><a href="/">Home</a></li>
+ <li><a href="http://ui.example.com:8080/groups.html">Groups</a></li>
<li>
<form action="/sessions/delete" method="post">
<input type="submit" value="logout" />