From 0da65dcbf3c81b2b04bfd1f43de538d75aa74605 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 06:53:13 +0000 Subject: [PATCH] Increase OAuth state limit Co-authored-by: HFO4 <16058869+HFO4@users.noreply.github.com> --- service/oauth/oauth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/oauth/oauth.go b/service/oauth/oauth.go index 719c7339..d15bd94b 100644 --- a/service/oauth/oauth.go +++ b/service/oauth/oauth.go @@ -48,10 +48,10 @@ type ( ClientID string `json:"client_id" binding:"required"` ResponseType string `json:"response_type" binding:"required,eq=code"` RedirectURI string `json:"redirect_uri" binding:"required"` - State string `json:"state" binding:"max=255"` + State string `json:"state" binding:"max=4096"` Scope string `json:"scope" binding:"required"` CodeChallenge string `json:"code_challenge" binding:"max=255"` - CodeChallengeMethod string `json:"code_challenge_method" binding:"eq=S256,omitempty"` + CodeChallengeMethod string `json:"code_challenge_method" binding:"omitempty,eq=S256"` } )