mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:07:30 +00:00
feat: directly specify factors/idps on addCustomLoginPolicy and return on LoginPolicy responses (#3711)
* feat: directly specify factors on addCustomLoginPolicy and return on LoginPolicy responses * fix proto * update login policy * feat: directly specify idp on addCustomLoginPolicy and return on LoginPolicy responses * fix: tests Co-authored-by: Max Peintner <max@caos.ch> Co-authored-by: Fabi <38692350+hifabienne@users.noreply.github.com>
This commit is contained in:
@@ -4337,6 +4337,11 @@ message GetDefaultLoginPolicyResponse {
|
||||
}
|
||||
|
||||
message AddCustomLoginPolicyRequest {
|
||||
message IDP {
|
||||
string idp_id = 1 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
zitadel.idp.v1.IDPOwnerType ownerType = 2 [(validate.rules).enum = {defined_only: true, not_in: [0]}];
|
||||
}
|
||||
|
||||
bool allow_username_password = 1;
|
||||
bool allow_register = 2;
|
||||
bool allow_external_idp = 3;
|
||||
@@ -4358,6 +4363,9 @@ message AddCustomLoginPolicyRequest {
|
||||
google.protobuf.Duration mfa_init_skip_lifetime = 11;
|
||||
google.protobuf.Duration second_factor_check_lifetime = 12;
|
||||
google.protobuf.Duration multi_factor_check_lifetime = 13;
|
||||
repeated zitadel.policy.v1.SecondFactorType second_factors = 14;
|
||||
repeated zitadel.policy.v1.MultiFactorType multi_factors = 15;
|
||||
repeated IDP idps = 16;
|
||||
}
|
||||
|
||||
message AddCustomLoginPolicyResponse {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "zitadel/object.proto";
|
||||
import "zitadel/idp.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
|
||||
@@ -170,7 +171,9 @@ message LoginPolicy {
|
||||
google.protobuf.Duration mfa_init_skip_lifetime = 13;
|
||||
google.protobuf.Duration second_factor_check_lifetime = 14;
|
||||
google.protobuf.Duration multi_factor_check_lifetime = 15;
|
||||
|
||||
repeated SecondFactorType second_factors = 16;
|
||||
repeated MultiFactorType multi_factors = 17;
|
||||
repeated zitadel.idp.v1.IDPLoginPolicyLink idps = 18;
|
||||
}
|
||||
|
||||
enum SecondFactorType {
|
||||
|
Reference in New Issue
Block a user