Skip to content

Commit

Permalink
clean up comments on azuread
Browse files Browse the repository at this point in the history
  • Loading branch information
devigned committed Aug 17, 2018
1 parent 7b1fe32 commit e4760d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions providers/azuread/azuread.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions providers/azuread/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand All @@ -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
Expand Down

0 comments on commit e4760d5

Please sign in to comment.