diff options
Diffstat (limited to 'server/auth/github')
-rw-r--r-- | server/auth/github/github.go | 1 | ||||
-rw-r--r-- | server/auth/github/github_test.go | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/server/auth/github/github.go b/server/auth/github/github.go index d7a57af..7904e26 100644 --- a/server/auth/github/github.go +++ b/server/auth/github/github.go @@ -78,7 +78,6 @@ func (c *Config) Revoke(token *oauth2.Token) error { func (c *Config) StartSession(state string) *auth.Session { return &auth.Session{ AuthURL: c.config.AuthCodeURL(state), - State: state, } } diff --git a/server/auth/github/github_test.go b/server/auth/github/github_test.go index f50d134..1d6b801 100644 --- a/server/auth/github/github_test.go +++ b/server/auth/github/github_test.go @@ -42,7 +42,6 @@ func TestStartSession(t *testing.T) { p, _ := newGithub() s := p.StartSession("test_state") - a.Equal(s.State, "test_state") a.Contains(s.AuthURL, "github.com/login/oauth/authorize") a.Contains(s.AuthURL, "state=test_state") a.Contains(s.AuthURL, fmt.Sprintf("client_id=%s", oauthClientID)) |