summaryrefslogtreecommitdiffstats
path: root/model/authorize_test.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2018-02-07 16:21:22 -0500
committerJoramWilander <jwawilander@gmail.com>2018-02-07 16:21:22 -0500
commit840892ab887680935df516f6942eb3563b7bf96b (patch)
treef8a9f4593b705fe18d84862017464cad23aa02cb /model/authorize_test.go
parent654fc2f7494889f00c236ec3eac8d37a887b1804 (diff)
downloadchat-840892ab887680935df516f6942eb3563b7bf96b.tar.gz
chat-840892ab887680935df516f6942eb3563b7bf96b.tar.bz2
chat-840892ab887680935df516f6942eb3563b7bf96b.zip
Increase OAuth2 state parameter limit
Diffstat (limited to 'model/authorize_test.go')
-rw-r--r--model/authorize_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/authorize_test.go b/model/authorize_test.go
index 3f43a4fc3..81e059305 100644
--- a/model/authorize_test.go
+++ b/model/authorize_test.go
@@ -115,7 +115,7 @@ func TestAuthIsValid(t *testing.T) {
t.Fatal(err)
}
- ad.Scope = NewRandomString(129)
+ ad.Scope = NewRandomString(1025)
if err := ad.IsValid(); err == nil {
t.Fatal("Should have failed invalid Scope")
}