diff options
author | JoramWilander <jwawilander@gmail.com> | 2018-02-07 16:21:22 -0500 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2018-02-07 16:21:22 -0500 |
commit | 840892ab887680935df516f6942eb3563b7bf96b (patch) | |
tree | f8a9f4593b705fe18d84862017464cad23aa02cb /model/authorize.go | |
parent | 654fc2f7494889f00c236ec3eac8d37a887b1804 (diff) | |
download | chat-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.go | 2 |
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) } |