From bbca1c033649c178475671b5be6133a92e0f9bc1 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Sat, 23 Apr 2016 13:43:23 +0100 Subject: Fix comments --- server/auth/github/github.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server') 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 } -- cgit v1.2.3