diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-06-06 00:31:15 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-06-06 00:31:15 +0100 |
commit | f456753248612222ad9bb6f3de74b7e28771470e (patch) | |
tree | cded438fa95419b615ac5c0aeb98e9c3f0dba7dc /server/auth/google | |
parent | a52d19e9e78d08643ffd4aee0483515d8bae2939 (diff) |
Save oauth 'state' identifier in the client
Diffstat (limited to 'server/auth/google')
-rw-r--r-- | server/auth/google/google.go | 1 | ||||
-rw-r--r-- | server/auth/google/google_test.go | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/server/auth/google/google.go b/server/auth/google/google.go index 7c9b930..e2c6724 100644 --- a/server/auth/google/google.go +++ b/server/auth/google/google.go @@ -90,7 +90,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, oauth2.SetAuthURLParam("hd", c.domain)), - State: state, } } diff --git a/server/auth/google/google_test.go b/server/auth/google/google_test.go index 4d41986..9970c21 100644 --- a/server/auth/google/google_test.go +++ b/server/auth/google/google_test.go @@ -44,7 +44,6 @@ func TestStartSession(t *testing.T) { p, err := newGoogle() a.NoError(err) s := p.StartSession("test_state") - a.Equal(s.State, "test_state") a.Contains(s.AuthURL, "accounts.google.com/o/oauth2/auth") a.Contains(s.AuthURL, "state=test_state") a.Contains(s.AuthURL, fmt.Sprintf("hd=%s", domain)) |