[feature] oob oauth token support (#889)

* move helpful advice into oauth server

* rewrite HandleAuthorizeRequest to allow oob
This commit is contained in:
tobi
2022-10-08 13:49:56 +02:00
committed by GitHub
parent 5cf0f9950a
commit 3bb45b7179
9 changed files with 252 additions and 42 deletions

8
web/template/oob.tmpl Normal file
View File

@@ -0,0 +1,8 @@
{{ template "header.tmpl" .}}
<main>
<h1>Hi {{ .user }}!</h1>
<p>Here's your out-of-band token with scope <em>{{.scope}}</em>:</p>
<p><code>{{ .oobToken }}</code><p>
<p>Use it wisely!</p>
</main>
{{ template "footer.tmpl" .}}