diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-26 16:16:51 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-26 16:16:51 -0600 |
| commit | 739ff3c99773e1310f403843fe5fac8059fb9fe6 (patch) | |
| tree | fa296cc5de62737a4829f5cde3faec0152ee561f /bin | |
| parent | 2e636ea73e44a84dd2be64c1e199f29fb2236a1d (diff) | |
feat: add nav to idp pages
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/idp | 24 | ||||
| -rwxr-xr-x | bin/ui | 16 |
2 files changed, 32 insertions, 8 deletions
@@ -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" /> @@ -453,8 +453,20 @@ class UI html = with_layout(binding) do <<~ERB - <a href="/index.html">Home</a> - <a href="/groups.html">Groups</a> + <nav> + <ul> + <li><strong>UI</strong></li> + </ul> + <ul> + <li><a href="/index.html">Home</a></li> + <li><a href="/groups.html">Groups</a></li> + <li> + <form action="/logout" method="post"> + <input type="submit" value="Logout" /> + </form> + </li> + </ul> + </nav> <h2>Received SAML Response</h2> <textarea readonly="readonly" disabled="disabled" cols=220 rows=40><%=- saml_response.to_xml(pretty: true) -%></textarea> |
