diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-04-23 13:43:23 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-04-23 13:43:23 +0100 |
commit | bbca1c033649c178475671b5be6133a92e0f9bc1 (patch) | |
tree | 51baf45ee29166293b5502b895c53ac7528e2c34 | |
parent | d86bd6fa9cd75cbcf5d4c8f44369754460625c99 (diff) |
Fix comments
-rw-r--r-- | server/auth/github/github.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/auth/github/github.go b/server/auth/github/github.go index da12531..1c62d9b 100644 --- a/server/auth/github/github.go +++ b/server/auth/github/github.go @@ -12,7 +12,6 @@ import ( ) const ( - // revokeURL = "https://accounts.google.com/o/oauth2/revoke?token=%s" name = "github" ) @@ -66,7 +65,9 @@ func (c *Config) Valid(token *oauth2.Token) bool { return member } -// Revoke disables the access token. +// GitHub doesn't seem to allow token revocation - tokens are indefinite and +// there are no refresh options etc. Returns nil to satisfy the Provider +// interface. func (c *Config) Revoke(token *oauth2.Token) error { return nil } |