aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/auth/github/github.go5
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
}