summaryrefslogtreecommitdiffstats
path: root/model/authorize.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.go
parent654fc2f7494889f00c236ec3eac8d37a887b1804 (diff)
downloadchat-840892ab887680935df516f6942eb3563b7bf96b.tar.gz
chat-840892ab887680935df516f6942eb3563b7bf96b.tar.bz2
chat-840892ab887680935df516f6942eb3563b7bf96b.zip
Increase OAuth2 state parameter limit
Diffstat (limited to 'model/authorize.go')
-rw-r--r--model/authorize.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/authorize.go b/model/authorize.go
index 2296e7e22..9fd5afa70 100644
--- a/model/authorize.go
+++ b/model/authorize.go
@@ -62,7 +62,7 @@ func (ad *AuthData) IsValid() *AppError {
return NewAppError("AuthData.IsValid", "model.authorize.is_valid.redirect_uri.app_error", nil, "client_id="+ad.ClientId, http.StatusBadRequest)
}
- if len(ad.State) > 128 {
+ if len(ad.State) > 1024 {
return NewAppError("AuthData.IsValid", "model.authorize.is_valid.state.app_error", nil, "client_id="+ad.ClientId, http.StatusBadRequest)
}