fix(api): extend client_secret length for generic oauth and oidc providers to 1000 (#6722)

This commit is contained in:
Livio Spring 2023-10-13 14:31:39 +03:00 committed by GitHub
parent 5a9609ef29
commit 27e03120dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -4887,7 +4887,7 @@ message AddGenericOAuthProviderRequest {
}
];
string client_secret = 3 [
(validate.rules).string = {min_len: 1, max_len: 200},
(validate.rules).string = {min_len: 1, max_len: 1000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"client-secret\"";
description: "Client secret generated by the identity provider";
@ -4954,7 +4954,7 @@ message UpdateGenericOAuthProviderRequest {
];
// client_secret will only be updated if provided
string client_secret = 4 [
(validate.rules).string = {max_len: 200},
(validate.rules).string = {max_len: 1000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"client-secret\"";
description: "Client secret will only be updated if provided";
@ -5025,7 +5025,7 @@ message AddGenericOIDCProviderRequest {
}
];
string client_secret = 4 [
(validate.rules).string = {min_len: 1, max_len: 200},
(validate.rules).string = {min_len: 1, max_len: 1000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"secret\"";
description: "secret generated by the identity provider"
@ -5076,7 +5076,7 @@ message UpdateGenericOIDCProviderRequest {
];
// client_secret will only be updated if provided
string client_secret = 5 [
(validate.rules).string = {max_len: 200},
(validate.rules).string = {max_len: 1000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"secret\"";
description: "client secret will only be updated if provided";

View File

@ -11759,7 +11759,7 @@ message AddGenericOAuthProviderRequest {
}
];
string client_secret = 3 [
(validate.rules).string = {min_len: 1, max_len: 200},
(validate.rules).string = {min_len: 1, max_len: 1000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"client-secret\"";
description: "Client secret generated by the identity provider";
@ -11826,7 +11826,7 @@ message UpdateGenericOAuthProviderRequest {
];
// client_secret will only be updated if provided
string client_secret = 4 [
(validate.rules).string = {max_len: 200},
(validate.rules).string = {max_len: 1000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"client-secret\"";
description: "Client secret will only be updated if provided";
@ -11897,7 +11897,7 @@ message AddGenericOIDCProviderRequest {
}
];
string client_secret = 4 [
(validate.rules).string = {min_len: 1, max_len: 200},
(validate.rules).string = {min_len: 1, max_len: 1000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"secret\"";
description: "secret generated by the identity provider"
@ -11948,7 +11948,7 @@ message UpdateGenericOIDCProviderRequest {
];
// client_secret will only be updated if provided
string client_secret = 5 [
(validate.rules).string = {max_len: 200},
(validate.rules).string = {max_len: 1000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"secret\"";
description: "client secret will only be updated if provided";