mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
Merge commit from fork
* feat(jwt idp): manage and validate audience * translations * fix tests * address comments * update migration version * fix merge
This commit is contained in:
@@ -6542,6 +6542,13 @@ message AddJWTProviderRequest {
|
||||
string keys_endpoint = 4 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
string header_name = 5 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
zitadel.idp.v1.Options provider_options = 6;
|
||||
string audience = 7 [
|
||||
(validate.rules).string = {max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"my-audience\"";
|
||||
description: "the expected audience in the JWT, if not provided the audience is not validated";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message AddJWTProviderResponse {
|
||||
@@ -6562,6 +6569,13 @@ message UpdateJWTProviderRequest {
|
||||
string keys_endpoint = 5 [(validate.rules).string = {max_len: 200}];
|
||||
string header_name = 6 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
zitadel.idp.v1.Options provider_options = 7;
|
||||
string audience = 8 [
|
||||
(validate.rules).string = {max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"my-audience\"";
|
||||
description: "the expected audience in the JWT, if not provided the audience is not validated";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message UpdateJWTProviderResponse {
|
||||
|
||||
@@ -195,6 +195,13 @@ message JWTConfig {
|
||||
description: "the name of the header where the JWT is sent in, default is authorization";
|
||||
}
|
||||
];
|
||||
string audience = 5 [
|
||||
(validate.rules).string = {max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"my-audience\"";
|
||||
description: "the expected audience in the JWT, if not provided the audience is not validated";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message IDPIDQuery {
|
||||
|
||||
@@ -133,6 +133,13 @@ message JWTConfig {
|
||||
"\"x-auth-token\"";
|
||||
}
|
||||
];
|
||||
// The audience is the expected audience in the JWT, if not configured, the audience is not validated.
|
||||
string audience = 5 [
|
||||
(validate.rules).string = {max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"my-audience\"";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message OAuthConfig {
|
||||
|
||||
@@ -13291,6 +13291,13 @@ message AddJWTProviderRequest {
|
||||
string keys_endpoint = 4 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
string header_name = 5 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
zitadel.idp.v1.Options provider_options = 6;
|
||||
string audience = 7 [
|
||||
(validate.rules).string = {max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"my-audience\"";
|
||||
description: "the expected audience in the JWT, if not provided the audience is not validated";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message AddJWTProviderResponse {
|
||||
@@ -13311,6 +13318,13 @@ message UpdateJWTProviderRequest {
|
||||
string keys_endpoint = 5 [(validate.rules).string = {max_len: 200}];
|
||||
string header_name = 6 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
zitadel.idp.v1.Options provider_options = 7;
|
||||
string audience = 8 [
|
||||
(validate.rules).string = {max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"my-audience\"";
|
||||
description: "the expected audience in the JWT, if not provided the audience is not validated";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message UpdateJWTProviderResponse {
|
||||
|
||||
Reference in New Issue
Block a user