diff --git a/internal/services/applications/validate/tokens.go b/internal/services/applications/validate/tokens.go index 0dfad9741a..2d5325de7a 100644 --- a/internal/services/applications/validate/tokens.go +++ b/internal/services/applications/validate/tokens.go @@ -20,10 +20,10 @@ func RoleScopeClaimValue(i interface{}, path cty.Path) (ret diag.Diagnostics) { return } - if len(v) > 120 { + if len(v) > 249 { ret = append(ret, diag.Diagnostic{ Severity: diag.Error, - Summary: "Value must be between 0-120 characters in length", + Summary: "Value must be between 0-249 characters in length", AttributePath: path, }) } diff --git a/internal/services/applications/validate/tokens_test.go b/internal/services/applications/validate/tokens_test.go index 4edfbc92aa..3f33a57db7 100644 --- a/internal/services/applications/validate/tokens_test.go +++ b/internal/services/applications/validate/tokens_test.go @@ -33,13 +33,18 @@ func TestRoleScopeClaimValue(t *testing.T) { TestName: "Valid_MaxLength", ErrCount: 0, }, + { + Value: acctest.RandString(249), + TestName: "Valid_MaxLength", + ErrCount: 0, + }, { Value: "", TestName: "Valid_Empty", ErrCount: 0, }, { - Value: acctest.RandString(121), + Value: acctest.RandString(250), TestName: "Invalid_MaxLength", ErrCount: 1, },