dex/examples/app/data/index.html

33 lines
809 B
HTML
Raw Normal View History

<html>
<body>
<form action="/login">
<p>
Authenticate for:<input type="text" name="cross_client" placeholder="comma-separated list of client-ids">
</p>
<p>
Extra scopes:<input type="text" name="extra_scopes" placeholder="comma-separated list of scopes">
</p>
2016-06-20 23:33:43 +05:30
{{ if .OOB }}
<input type="submit" value="Login" formtarget="_blank">
{{ else }}
<input type="submit" value="Login" >
{{ end }}
</form>
2016-06-20 23:33:43 +05:30
{{ if .OOB }}
<form action="/callback" method="get" >
Code
<input type="text" name="code" value="">
<br>
<input type="submit" value="Exchange Code" >
</form>
2016-06-20 23:33:43 +05:30
{{ end }}
{{ if not .OOB }}
<form action="/register">
2016-06-20 23:33:43 +05:30
<input type="submit" value="Register" />
</form>
2016-06-20 23:33:43 +05:30
{{ end }}
</body>
</html>