mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:17:32 +00:00
fix: improvements for WebAuthN (#1105)
* add missing translations * add missing passwordless funcs in api * remove u2f with verification from setup in login
This commit is contained in:
@@ -409,6 +409,26 @@ service ManagementService {
|
||||
};
|
||||
}
|
||||
|
||||
rpc GetPasswordless(UserID) returns (WebAuthNTokens) {
|
||||
option (google.api.http) = {
|
||||
get: "/users/{id}/passwordless"
|
||||
};
|
||||
|
||||
option (caos.zitadel.utils.v1.auth_option) = {
|
||||
permission: "user.read"
|
||||
};
|
||||
}
|
||||
|
||||
rpc RemovePasswordless(WebAuthNTokenID) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = {
|
||||
delete: "/users/{user_id}/passwordless"
|
||||
};
|
||||
|
||||
option (caos.zitadel.utils.v1.auth_option) = {
|
||||
permission: "user.write"
|
||||
};
|
||||
}
|
||||
|
||||
// Sends an Notification (Email/SMS) with a password reset Link
|
||||
rpc SendSetPasswordNotification(SetPasswordNotificationRequest) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = {
|
||||
@@ -1656,6 +1676,16 @@ message UserID {
|
||||
string id = 1 [(validate.rules).string.min_len = 1];
|
||||
}
|
||||
|
||||
message WebAuthNTokens {
|
||||
repeated WebAuthNToken tokens = 1;
|
||||
}
|
||||
|
||||
message WebAuthNToken {
|
||||
string id = 1;
|
||||
string name = 2;
|
||||
MFAState state = 3;
|
||||
}
|
||||
|
||||
message WebAuthNTokenID {
|
||||
string user_id = 1 [(validate.rules).string.min_len = 1];
|
||||
string id = 2 [(validate.rules).string.min_len = 1];
|
||||
@@ -3097,6 +3127,7 @@ enum PasswordlessType {
|
||||
PASSWORDLESSTYPE_ALLOWED = 1;
|
||||
}
|
||||
|
||||
|
||||
message IdpProviderID {
|
||||
string idp_config_id = 1 [(validate.rules).string = {min_len: 1}];
|
||||
}
|
||||
|
Reference in New Issue
Block a user