aboutsummaryrefslogtreecommitdiff
path: root/server/auth/github/github.go
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2018-08-20 17:18:27 +0100
committerNiall Sheridan <nsheridan@gmail.com>2018-08-20 17:18:27 +0100
commitf906c9ba422eb720514721b559c01f840ca34a0c (patch)
treec7a8b0d4df7159b9b4ed959508b668c8f7e1c79d /server/auth/github/github.go
parent87ae7c73ebe05f777e23087b1550d2cab42746ff (diff)
Remove authprovider.Session
Diffstat (limited to 'server/auth/github/github.go')
-rw-r--r--server/auth/github/github.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/auth/github/github.go b/server/auth/github/github.go
index d546478..38009e1 100644
--- a/server/auth/github/github.go
+++ b/server/auth/github/github.go
@@ -97,10 +97,8 @@ func (c *Config) Revoke(token *oauth2.Token) error {
}
// StartSession retrieves an authentication endpoint from Github.
-func (c *Config) StartSession(state string) *auth.Session {
- return &auth.Session{
- AuthURL: c.config.AuthCodeURL(state),
- }
+func (c *Config) StartSession(state string) string {
+ return c.config.AuthCodeURL(state)
}
// Exchange authorizes the session and returns an access token.