summaryrefslogtreecommitdiff
path: root/bin/idp
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-03-12 12:17:21 -0600
committermo khan <mo@mokhan.ca>2025-03-12 12:17:21 -0600
commitbe5f3951f2d8a0d53dfc329b083f0cef86cbd184 (patch)
tree63113fb63e42cf4bda8ccd6fa3c9d8fb68ec794a /bin/idp
parent165c21995a6d26304a42655555ec1a3c81d2a6ca (diff)
test: fix the e2e test to enter username/password
Diffstat (limited to 'bin/idp')
-rwxr-xr-xbin/idp9
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/idp b/bin/idp
index 9bc8a80f..0bd3849c 100755
--- a/bin/idp
+++ b/bin/idp
@@ -179,13 +179,13 @@ module Authn
<h2>Recieved SAML Request</h2>
<textarea readonly="readonly" disabled="disabled" cols=225 rows=6><%=- saml_request.to_xml(pretty: true) -%></textarea>
- <form action="/saml/login" method="post">
- <input type="input" placeholder="Username" name="username" value="" />
- <input type="password" placeholder="Password" name="password" value="" />
+ <form id="login-form" action="/saml/login" method="post">
+ <input type="input" placeholder="Username" id="username" name="username" value="" />
+ <input type="password" placeholder="Password" id="password" name="password" value="" />
<%- saml_params.each do |(key, value)| -%>
<input type="hidden" name="<%= key %>" value="<%= value %>" />
<%- end -%>
- <input type="submit" value="Login" />
+ <input type="submit" id="login-button" value="Login" />
</form>
</body>
</html>
@@ -345,7 +345,6 @@ module Authz
return post_authorize(Rack::Request.new(env))
when "/token" # RFC-6749
request = Rack::Request.new(env)
- request.body
return [200, { 'Content-Type' => "application/json" }, [JSON.pretty_generate({
access_token: ::Authz::JWT.new(sub: SecureRandom.uuid, iat: Time.now.to_i).to_jwt,