mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:07:30 +00:00
feat: Login verification lifetimes (#3190)
* feat: add login check lifetimes to login policy * feat: org features test * feat: read lifetimes from loginpolicy
This commit is contained in:
@@ -3459,6 +3459,11 @@ message UpdateLoginPolicyRequest {
|
||||
description: "defines if password reset link should be shown in the login screen"
|
||||
}
|
||||
];
|
||||
google.protobuf.Duration password_check_lifetime = 7;
|
||||
google.protobuf.Duration external_login_check_lifetime = 8;
|
||||
google.protobuf.Duration mfa_init_skip_lifetime = 9;
|
||||
google.protobuf.Duration second_factor_check_lifetime = 10;
|
||||
google.protobuf.Duration multi_factor_check_lifetime = 11;
|
||||
}
|
||||
|
||||
message UpdateLoginPolicyResponse {
|
||||
|
@@ -4397,6 +4397,11 @@ message AddCustomLoginPolicyRequest {
|
||||
bool force_mfa = 4;
|
||||
zitadel.policy.v1.PasswordlessType passwordless_type = 5 [(validate.rules).enum = {defined_only: true}];
|
||||
bool hide_password_reset = 6;
|
||||
google.protobuf.Duration password_check_lifetime = 7;
|
||||
google.protobuf.Duration external_login_check_lifetime = 8;
|
||||
google.protobuf.Duration mfa_init_skip_lifetime = 9;
|
||||
google.protobuf.Duration second_factor_check_lifetime = 10;
|
||||
google.protobuf.Duration multi_factor_check_lifetime = 11;
|
||||
}
|
||||
|
||||
message AddCustomLoginPolicyResponse {
|
||||
@@ -4410,6 +4415,11 @@ message UpdateCustomLoginPolicyRequest {
|
||||
bool force_mfa = 4;
|
||||
zitadel.policy.v1.PasswordlessType passwordless_type = 5 [(validate.rules).enum = {defined_only: true}];
|
||||
bool hide_password_reset = 6;
|
||||
google.protobuf.Duration password_check_lifetime = 7;
|
||||
google.protobuf.Duration external_login_check_lifetime = 8;
|
||||
google.protobuf.Duration mfa_init_skip_lifetime = 9;
|
||||
google.protobuf.Duration second_factor_check_lifetime = 10;
|
||||
google.protobuf.Duration multi_factor_check_lifetime = 11;
|
||||
}
|
||||
|
||||
message UpdateCustomLoginPolicyResponse {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "zitadel/object.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
|
||||
package zitadel.policy.v1;
|
||||
@@ -128,6 +129,12 @@ message LoginPolicy {
|
||||
description: "defines if password reset link should be shown in the login screen"
|
||||
}
|
||||
];
|
||||
google.protobuf.Duration password_check_lifetime = 9;
|
||||
google.protobuf.Duration external_login_check_lifetime = 10;
|
||||
google.protobuf.Duration mfa_init_skip_lifetime = 11;
|
||||
google.protobuf.Duration second_factor_check_lifetime = 12;
|
||||
google.protobuf.Duration multi_factor_check_lifetime = 13;
|
||||
|
||||
}
|
||||
|
||||
enum SecondFactorType {
|
||||
|
Reference in New Issue
Block a user