mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:27:42 +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:
@@ -337,6 +337,15 @@ service AuthService {
|
||||
};
|
||||
}
|
||||
|
||||
rpc GetMyPasswordless(google.protobuf.Empty) returns (WebAuthNTokens) {
|
||||
option (google.api.http) = {
|
||||
get: "/users/me/passwordless"
|
||||
};
|
||||
option (caos.zitadel.utils.v1.auth_option) = {
|
||||
permission: "authenticated"
|
||||
};
|
||||
}
|
||||
|
||||
rpc AddMyPasswordless(google.protobuf.Empty) returns (WebAuthNResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/users/me/passwordless"
|
||||
@@ -666,6 +675,16 @@ message MfaOtpResponse {
|
||||
MFAState state = 4;
|
||||
}
|
||||
|
||||
message WebAuthNTokens {
|
||||
repeated WebAuthNToken tokens = 1;
|
||||
}
|
||||
|
||||
message WebAuthNToken {
|
||||
string id = 1;
|
||||
string name = 2;
|
||||
MFAState state = 3;
|
||||
}
|
||||
|
||||
message WebAuthNResponse {
|
||||
string id = 1;
|
||||
bytes public_key = 2;
|
||||
|
Reference in New Issue
Block a user