Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save anishsujanani/cc7b73738929c738fd16a2c7efda806a to your computer and use it in GitHub Desktop.

Select an option

Save anishsujanani/cc7b73738929c738fd16a2c7efda806a to your computer and use it in GitHub Desktop.
Custom Oauth - auth serv - auth page
<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