-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LG-835 Add LOA3 to Open ID Connect Sinatra Test App (#47)
* LG-835 Add LOA3 to Open ID Connect Sinatra Test App
- Loading branch information
Showing
2 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
<div class="container py2"> | ||
<h1> Login.gov Open ID Connect Sinatra</h1> | ||
<div class="mb1 right-align"> | ||
<a href="<%= authorization_url %>" class="btn btn-outline bg-white navy"> | ||
<img class="align-middle" width="125" src="/images/login-gov.svg" alt="Login gov"> | ||
</a> | ||
<div class="mb1"> | ||
<label for="loa_1"> | ||
<input type="radio" name="loa" id="loa_1" value="1" checked="checked"> LOA1 | ||
</label> | ||
<label for="loa_3"> | ||
<input type="radio" name="loa" id="loa_3" value="3"> LOA3 | ||
</label> | ||
</div> | ||
<a onclick='gotoAuthUrl(); return false;' href="<%= loa1_url %>" class="btn btn-outline bg-white navy"> | ||
<img class="align-middle" width="125" src="/images/login-gov.svg" alt="Login gov"> | ||
</a> | ||
</div> | ||
<%= erb :page_content %> | ||
</div> | ||
|
||
<script> | ||
function gotoAuthUrl() { | ||
window.location.href = document.getElementById('loa_1').checked ? "<%= loa1_url %>" : "<%= loa3_url %>"; | ||
} | ||
</script> |