File: confirm_device.html

package info (click to toggle)
golang-github-zitadel-oidc 3.44.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,520 kB
  • sloc: makefile: 5
file content (25 lines) | stat: -rw-r--r-- 766 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{{ define "confirm_device" -}}
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Confirm device authorization</title>
        <style>
            .green{
                background-color: green
            }
            .red{
                background-color: red
            }
        </style>
    </head>
    <body>
        <h1>Welcome back {{.Username}}!</h1>
        <p>
            You are about to grant device {{.ClientID}} access to the following scopes: {{.Scopes}}.
        </p>
        <button onclick="location.href='./confirm?action=allowed'" type="button" class="green">Allow</button>
        <button onclick="location.href='./confirm?action=denied'" type="button" class="red">Deny</button>
    </body>
</html>
{{- end }}