From e4760d560b405b7f42a91bf63e232cccf3ad98a4 Mon Sep 17 00:00:00 2001 From: David Justice Date: Fri, 17 Aug 2018 14:23:45 -0700 Subject: [PATCH] clean up comments on azuread --- providers/azuread/azuread.go | 4 ++-- providers/azuread/session.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/providers/azuread/azuread.go b/providers/azuread/azuread.go index 37114ff4e..50fb47989 100644 --- a/providers/azuread/azuread.go +++ b/providers/azuread/azuread.go @@ -67,10 +67,10 @@ func (p *Provider) Client() *http.Client { return goth.HTTPClientWithFallBack(p.HTTPClient) } -// Debug is a no-op for the facebook package. +// Debug is a no-op for the package. func (p *Provider) Debug(debug bool) {} -// BeginAuth asks Onedrive for an authentication end-point. +// BeginAuth asks AzureAD for an authentication end-point. func (p *Provider) BeginAuth(state string) (goth.Session, error) { authURL := p.config.AuthCodeURL(state) diff --git a/providers/azuread/session.go b/providers/azuread/session.go index e72f3e6e6..098a9dc6d 100644 --- a/providers/azuread/session.go +++ b/providers/azuread/session.go @@ -26,7 +26,7 @@ func (s Session) GetAuthURL() (string, error) { return s.AuthURL, nil } -// Authorize the session with Facebook and return the access token to be stored for future use. +// Authorize the session with AzureAD and return the access token to be stored for future use. func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, error) { p := provider.(*Provider) token, err := p.config.Exchange(goth.ContextForClient(p.Client()), params.Get("code")) @@ -35,7 +35,7 @@ func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, } if !token.Valid() { - return "", errors.New("Invalid token received from provider") + return "", errors.New("invalid token received from provider") } s.AccessToken = token.AccessToken