summaryrefslogtreecommitdiffstats
path: root/api/oauth_test.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-10-04 11:05:36 -0400
committerGitHub <noreply@github.com>2017-10-04 11:05:36 -0400
commitf94b807f3973d824d8512c94e2a49b510005e56f (patch)
treea065ba5a0a913259efb5f2b28660842f6304601b /api/oauth_test.go
parente05edf85cfc0c16f3232a53c106f613ab366f11a (diff)
downloadchat-f94b807f3973d824d8512c94e2a49b510005e56f.tar.gz
chat-f94b807f3973d824d8512c94e2a49b510005e56f.tar.bz2
chat-f94b807f3973d824d8512c94e2a49b510005e56f.zip
PLT-7782 Fix for OAuth (#7566)
* Fix for oauth * Fix test
Diffstat (limited to 'api/oauth_test.go')
-rw-r--r--api/oauth_test.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/api/oauth_test.go b/api/oauth_test.go
index 0e952768e..0f809dfe6 100644
--- a/api/oauth_test.go
+++ b/api/oauth_test.go
@@ -765,14 +765,6 @@ func TestOAuthAccessToken(t *testing.T) {
t.Fatal("Should have failed - code is expired")
}
- authData = &model.AuthData{ClientId: oauthApp.Id, RedirectUri: oauthApp.CallbackUrls[0], UserId: th.BasicUser.Id, Code: model.NewId(), ExpiresIn: model.AUTHCODE_EXPIRE_TIME}
- <-th.App.Srv.Store.OAuth().SaveAuthData(authData)
-
- data.Set("code", authData.Code)
- if _, err := Client.GetAccessToken(data); err == nil {
- t.Fatal("Should have failed - code with invalid hash comparission")
- }
-
Client.ClearOAuthToken()
}