diff --git a/embed/auth.html b/embed/auth.html index 61fe7ea..1e4eec1 100644 --- a/embed/auth.html +++ b/embed/auth.html @@ -1,12 +1,14 @@ -

Authorization for {{.ClientId}}

+

Authorization for {{.ClientId}}

-Requesting scope: +
Requesting scope:
+

+
diff --git a/renderer.go b/renderer.go index ccfbdaf..3ef6df9 100644 --- a/renderer.go +++ b/renderer.go @@ -125,12 +125,12 @@ func RenderIndexPage(user User) (string, error) { } func RenderUserAuthPage(reqData AuthRequestData) (string, error) { + reqData.Scopes = strings.Split(reqData.Scope, " ") authHtml, err := renderEmbedTemplate("embed/auth.html", reqData) if err != nil { return "", err } - reqData.Scopes = strings.Split(reqData.Scope, " ") return renderIntoBaseTemplate(reqData.User, PageContent{ Title: "Auth", Content: template.HTML(authHtml),