From d7990807f019c23dba7b349e2b112199a0e7667c Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Wed, 17 Apr 2024 17:24:56 -0600 Subject: [PATCH] Minor changes --- internal/login.go | 5 +++-- internal/new.go | 4 ++++ internal/oauth/authenticate.go | 3 +-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/internal/login.go b/internal/login.go index 2ab0b04..e9c6374 100644 --- a/internal/login.go +++ b/internal/login.go @@ -41,7 +41,7 @@ func Login(config *Config, client *oauth.Client, provider *oidc.IdentityProvider // print the authorization URL for sharing var authorizationUrl = client.BuildAuthorizationUrl(provider.Endpoints.Authorization, state) s := NewServerWithConfig(config) - fmt.Printf("Login with identity provider:\n\n %s/login\n %s\n\n", + fmt.Printf("Login with external identity provider:\n\n %s/login\n %s\n\n", s.GetListenAddr(), authorizationUrl, ) @@ -87,7 +87,7 @@ func Login(config *Config, client *oauth.Client, provider *oidc.IdentityProvider Client: authzClient, }, } - err = s.Start(button, provider, client, params) + err = s.StartLogin(button, provider, client, params) if errors.Is(err, http.ErrServerClosed) { fmt.Printf("\n=========================================\nServer closed.\n=========================================\n\n") } else if err != nil { @@ -110,6 +110,7 @@ func Login(config *Config, client *oauth.Client, provider *oidc.IdentityProvider } func MakeButton(url string, text string) string { + // check if we have http:// a html := "