fix: add domain as attribute to list user auth methods (#8718)

# Which Problems Are Solved

There is no option to only query auth methods related to specific
domains.

# How the Problems Are Solved

Add domain as attribute to the ListAuthenticationMethodTypes request.

# Additional Changes

OwnerRemoved column removed from the projection.

# Additional Context

Closes #8615

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
Stefan Benz
2024-10-10 18:50:53 +02:00
committed by GitHub
parent df2033253d
commit 4d593dace2
29 changed files with 649 additions and 86 deletions

View File

@@ -2133,6 +2133,21 @@ message ListAuthenticationMethodTypesRequest{
example: "\"69629026806489455\"";
}
];
optional DomainQuery domain_query = 2;
}
message DomainQuery {
// List also auth method types without domain information like passkey and U2F added through V1 APIs / Login UI.
bool include_without_domain = 1;
// List only auth methods with specific domain.
string domain = 2 [
(validate.rules).string = {min_len: 1, max_len: 200},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
min_length: 1;
max_length: 200;
example: "\"example.com\"";
}
];
}
message ListAuthenticationMethodTypesResponse{
@@ -2213,4 +2228,4 @@ message VerifyInviteCodeRequest {
message VerifyInviteCodeResponse {
zitadel.object.v2.Details details = 1;
}
}