From f619b0dea3486d89ea92448d40d0d62e4992fbc4 Mon Sep 17 00:00:00 2001 From: Hidetake Iwata Date: Mon, 6 Jul 2020 21:57:03 +0900 Subject: [PATCH] Improve default authorization success page --- oauth2cli.go | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/oauth2cli.go b/oauth2cli.go index 8dfdf09..2545639 100644 --- a/oauth2cli.go +++ b/oauth2cli.go @@ -14,7 +14,38 @@ import ( var noopMiddleware = func(h http.Handler) http.Handler { return h } // DefaultLocalServerSuccessHTML is a default response body on authorization success. -const DefaultLocalServerSuccessHTML = `OK` +const DefaultLocalServerSuccessHTML = ` + + + + + Authorized + + + + +
+

Authorized

+

You can close this window.

+
+ + +` // Config represents a config for GetToken. type Config struct {