2024-05-15 23:33:59 +01:00
<!DOCTYPE html>
2024-05-16 22:28:11 +01:00
< html lang = "en" >
2024-05-15 23:33:59 +01:00
< head >
< title > {{.ServiceName}}< / title >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / >
2024-05-16 03:07:03 +01:00
< link rel = "stylesheet" href = "/assets/style.css" >
2024-05-15 23:33:59 +01:00
< / head >
2024-05-16 22:28:11 +01:00
< body >
2024-05-15 23:33:59 +01:00
{{template "header.go.html" .}}
2024-05-16 22:28:11 +01:00
< main >
< div class = "center-box sm:max-w-md" >
< h1 class = "box-title" > {{.AppName}}< / h1 >
< h2 class = "text-l font-bold leading-tight tracking-tight text-gray-900 md:text-xl dark:text-white text-center" > Would like access to your 1f349 account:< / h2 >
< h3 class = "text-l leading-tight tracking-tight text-gray-900 md:text-xl dark:text-white text-center" > Logged in as: < span class = "font-bold" > {{.Auth.UserInfo.name}}< / span > < / h3 >
< div >
< ul class = "space-y-1 text-gray-800 list-disc list-inside dark:text-gray-400" >
{{range .WantsList}}
< li > {{.}}< / li >
{{end}}
< / ul >
2024-05-15 23:33:59 +01:00
< / div >
2024-05-16 22:28:11 +01:00
< form method = "POST" action = "/login" class = "space-y-4 md:space-y-6" >
< input type = "hidden" name = "response_type" value = "{{.ResponseType}}" / >
< input type = "hidden" name = "response_mode" value = "{{.ResponseMode}}" >
< input type = "hidden" name = "client_id" value = "{{.ClientID}}" / >
< input type = "hidden" name = "redirect_uri" value = "{{.RedirectUri}}" / >
< input type = "hidden" name = "state" value = "{{.State}}" / >
< input type = "hidden" name = "scope" value = "{{.Scope}}" / >
< input type = "hidden" name = "nonce" value = "{{.Nonce}}" / >
< div class = "grid grid-cols-2 gap-4" >
< button type = "submit" name = "oauth_action" value = "authorize" class = "btn-green" > Authorize< / button >
< button type = "submit" name = "oauth_action" value = "cancel" class = "btn-red" > Cancel< / button >
< / div >
< / form >
< div > Authorizing this action will redirect you to < a href = "" class = "font-bold" > {{.AppDomain}}< / a > with access to the permissions requested above.< / div >
2024-05-15 23:33:59 +01:00
< / div >
< / main >
< / body >
< / html >