Created
August 2, 2020 12:17
-
-
Save anishsujanani/cc7b73738929c738fd16a2c7efda806a to your computer and use it in GitHub Desktop.
Custom Oauth - auth serv - auth page
This file contains hidden or 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
| <html> | |
| <body> | |
| <h1> Auth-Server Page</h1> | |
| <h3><%= client_uri %></h3> has requested for scopes: <h3><%= selected_scope %></h3> | |
| <br> | |
| Normally I would ask for username/password, but for simiplicity, just click below: | |
| <br> | |
| Once you consent, I will redirect you to <h3><%= client_redirect_uri %></h3> | |
| <form action="/consent" method=POST> | |
| <input type="hidden" name="selected_scope", value="<%= selected_scope %>"/> | |
| <input type="hidden" name="state", value="<%= state %>"/> | |
| <input type="hidden" name="redirect_uri", value="<%= client_redirect_uri %>"/> | |
| <button type="submit">I consent</button> | |
| </form> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment