chore: renamed one time password to OTP (#11447)

# Which Problems Are Solved

naming consistency for TOTP/OTP

# How the Problems Are Solved


# Additional Changes


# Additional Context

- Closes #11299 
- Closes #11302 
- Closes #11304

---------

Co-authored-by: Marco A. <[email protected]>
Co-authored-by: Florian Forster <[email protected]>
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
Wim Van Laer
2026-02-04 10:20:47 +01:00
committed by GitHub
co-authored by Marco A. Florian Forster Copilot
parent 61d4060df3
commit b99271755b
77 changed files with 1688 additions and 1728 deletions
+21 -21
View File
@@ -3583,8 +3583,8 @@ service AdminService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Get Default Verify SMS OTP Message Text";
description: "Get the default text of the verify SMS OTP message that is stored as translation files in Zitadel itself. The text will be sent to the users of all organizations, that do not have a custom text configured. The message is sent when an SMS One-time password should be verified and a notification provider is configured."
summary: "Get Default Verify OTP SMS Message Text";
description: "Get the default text of the verify OTP SMS message that is stored as translation files in Zitadel itself. The text will be sent to the users of all organizations, that do not have a custom text configured. The message is sent when an OTP SMS should be verified and a notification provider is configured."
};
}
@@ -3599,8 +3599,8 @@ service AdminService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Get Custom Verify SMS OTP Message Text";
description: "Get the custom text of the verify SMS OTP message that is overwritten on the instance as settings/database. The text will be sent to the users of all organizations, that do not have a custom text configured. The message is sent when an SMS One-time password should be verified and a notification provider is configured."
summary: "Get Custom Verify OTP SMS Message Text";
description: "Get the custom text of the verify OTP SMS message that is overwritten on the instance as settings/database. The text will be sent to the users of all organizations, that do not have a custom text configured. The message is sent when an OTP SMS should be verified and a notification provider is configured."
};
}
@@ -3616,8 +3616,8 @@ service AdminService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Set Default Verify SMS OTP Reset Message Text";
description: "Set the custom text of the verify SMS OTP user message that is overwritten on the instance as settings/database. The text will be sent to the users of all organizations, that do not have a custom text configured. The message is sent when an SMS One-time password should be verified and a notification provider is configured. The Following Variables can be used: {{.Code}} {{.UserName}} {{.FirstName}} {{.LastName}} {{.NickName}} {{.DisplayName}} {{.LastEmail}} {{.VerifiedEmail}} {{.LastPhone}} {{.VerifiedPhone}} {{.PreferredLoginName}} {{.LoginNames}} {{.ChangeDate}} {{.CreationDate}}"
summary: "Set Default Verify OTP SMS Reset Message Text";
description: "Set the custom text of the verify OTP SMS user message that is overwritten on the instance as settings/database. The text will be sent to the users of all organizations, that do not have a custom text configured. The message is sent when an OTP SMS should be verified and a notification provider is configured. The Following Variables can be used: {{.Code}} {{.UserName}} {{.FirstName}} {{.LastName}} {{.NickName}} {{.DisplayName}} {{.LastEmail}} {{.VerifiedEmail}} {{.LastPhone}} {{.VerifiedPhone}} {{.PreferredLoginName}} {{.LoginNames}} {{.ChangeDate}} {{.CreationDate}}"
};
}
@@ -3632,8 +3632,8 @@ service AdminService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Reset Custom Verify SMS OTP Message Text to Default";
description: "Removes the custom text of the verify SMS OTP message that is overwritten on the instance and triggers the text from the translation files stored in Zitadel itself. The text will be sent to the users of all organizations, that do not have a custom text configured."
summary: "Reset Custom Verify OTP SMS Message Text to Default";
description: "Removes the custom text of the verify OTP SMS message that is overwritten on the instance and triggers the text from the translation files stored in Zitadel itself. The text will be sent to the users of all organizations, that do not have a custom text configured."
};
}
@@ -3649,8 +3649,8 @@ service AdminService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Get Default Verify SMS OTP Message Text";
description: "Get the default text of the verify Email OTP message that is stored as translation files in Zitadel itself. The text will be sent to the users of all organizations, that do not have a custom text configured. The message is sent when an SMS One-time password should be verified and a notification provider is configured."
summary: "Get Default Verify OTP SMS Message Text";
description: "Get the default text of the verify OTP Email message that is stored as translation files in Zitadel itself. The text will be sent to the users of all organizations, that do not have a custom text configured. The message is sent when an OTP SMS should be verified and a notification provider is configured."
};
}
@@ -3665,8 +3665,8 @@ service AdminService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Get Custom Verify SMS OTP Message Text";
description: "Get the custom text of the Email OTP message that is overwritten on the instance as settings/database. The text will be sent to the users of all organizations, that do not have a custom text configured. The message is sent when an SMS One-time password should be verified and a notification provider is configured."
summary: "Get Custom Verify OTP SMS Message Text";
description: "Get the custom text of the OTP Email message that is overwritten on the instance as settings/database. The text will be sent to the users of all organizations, that do not have a custom text configured. The message is sent when an OTP SMS should be verified and a notification provider is configured."
};
}
@@ -3682,8 +3682,8 @@ service AdminService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Set Default Verify SMS OTP Reset Message Text";
description: "Set the custom text of the Email OTP user message that is overwritten on the instance as settings/database. The text will be sent to the users of all organizations, that do not have a custom text configured. The message is sent when an SMS One-time password should be verified and a notification provider is configured. The Following Variables can be used: {{.Code}} {{.UserName}} {{.FirstName}} {{.LastName}} {{.NickName}} {{.DisplayName}} {{.LastEmail}} {{.VerifiedEmail}} {{.LastPhone}} {{.VerifiedPhone}} {{.PreferredLoginName}} {{.LoginNames}} {{.ChangeDate}} {{.CreationDate}}"
summary: "Set Default Verify OTP SMS Reset Message Text";
description: "Set the custom text of the OTP Email user message that is overwritten on the instance as settings/database. The text will be sent to the users of all organizations, that do not have a custom text configured. The message is sent when an OTP SMS should be verified and a notification provider is configured. The Following Variables can be used: {{.Code}} {{.UserName}} {{.FirstName}} {{.LastName}} {{.NickName}} {{.DisplayName}} {{.LastEmail}} {{.VerifiedEmail}} {{.LastPhone}} {{.VerifiedPhone}} {{.PreferredLoginName}} {{.LoginNames}} {{.ChangeDate}} {{.CreationDate}}"
};
}
@@ -3698,8 +3698,8 @@ service AdminService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Reset Custom Verify SMS OTP Message Text to Default";
description: "Removes the custom text of the Email OTP message that is overwritten on the instance and triggers the text from the translation files stored in Zitadel itself. The text will be sent to the users of all organizations, that do not have a custom text configured."
summary: "Reset Custom Verify OTP SMS Message Text to Default";
description: "Removes the custom text of the OTP Email message that is overwritten on the instance and triggers the text from the translation files stored in Zitadel itself. The text will be sent to the users of all organizations, that do not have a custom text configured."
};
}
@@ -8402,7 +8402,7 @@ message SetDefaultVerifySMSOTPMessageTextRequest {
string text = 2 [
(validate.rules).string = {max_len: 800},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"Please visit {{ .VerifyURL }} or copy the one-time password {{.OTP}} and paste it to to the authentication screen in order to authenticate at Zitadel within the next five minutes.\""
example: "\"Please visit {{ .VerifyURL }} or copy the OTP {{.OTP}} and paste it to to the authentication screen in order to authenticate at Zitadel within the next five minutes.\""
max_length: 800;
}
];
@@ -8447,21 +8447,21 @@ message SetDefaultVerifyEmailOTPMessageTextRequest {
string title = 2 [
(validate.rules).string = {max_bytes: 2000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"ZITADEL - One-time Password\""
example: "\"ZITADEL - OTP\""
max_length: 500;
}
];
string pre_header = 3 [
(validate.rules).string = {max_bytes: 2000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"Verify One-time Password \""
example: "\"Verify OTP\""
max_length: 500;
}
];
string subject = 4 [
(validate.rules).string = {max_bytes: 2000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"Verify One-time Password\""
example: "\"Verify OTP\""
max_length: 500;
}
];
@@ -8475,7 +8475,7 @@ message SetDefaultVerifyEmailOTPMessageTextRequest {
string text = 6 [
(validate.rules).string = {max_bytes: 40000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"Please use the \\\"Authenticate\\\" button or copy the one-time password {{.OTP}} and paste it to to the authentication screen in order to authenticate at Zitadel within the next five minutes.\""
example: "\"Please use the \\\"Authenticate\\\" button or copy the OTP {{.OTP}} and paste it to to the authentication screen in order to authenticate at Zitadel within the next five minutes.\""
max_length: 10000;
}
];
+14 -14
View File
@@ -612,8 +612,8 @@ service AuthService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "User Authentication Factor"
summary: "Add One-Time Password (OTP)";
description: "Add a new One-Time Password (OTP) factor to the authenticated user. OTP is an authenticator app like Google/Microsoft Authenticator, Authy, etc. Only one OTP per user is allowed. After adding a new OTP it has to be verified."
summary: "Add OTP";
description: "Add a new OTP factor to the authenticated user. OTP is an authenticator app like Google/Microsoft Authenticator, Authy, etc. Only one OTP per user is allowed. After adding a new OTP it has to be verified."
};
}
@@ -629,8 +629,8 @@ service AuthService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "User Authentication Factor"
summary: "Verify One-Time Password (OTP)";
description: "Verify the last added One-Time Password (OTP) factor of the authenticated user. OTP is an authenticator app like Google/Microsoft Authenticator, Authy, etc. Only one OTP per user is allowed."
summary: "Verify OTP";
description: "Verify the last added OTP factor of the authenticated user. OTP is an authenticator app like Google/Microsoft Authenticator, Authy, etc. Only one OTP per user is allowed."
};
}
@@ -645,8 +645,8 @@ service AuthService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "User Authentication Factor"
summary: "Remove One-Time Password (OTP)";
description: "Remove the configured One-Time Password (OTP) factor of the authenticated user. OTP is an authenticator app like Google/Microsoft Authenticator, Authy, etc. As only one OTP per user is allowed, the user will not have OTP as a second factor afterward."
summary: "Remove OTP";
description: "Remove the configured OTP factor of the authenticated user. OTP is an authenticator app like Google/Microsoft Authenticator, Authy, etc. As only one OTP per user is allowed, the user will not have OTP as a second factor afterward."
};
}
@@ -661,8 +661,8 @@ service AuthService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "User Authentication Factor"
summary: "Add One-Time Password (OTP) SMS";
description: "Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor."
summary: "Add OTP SMS";
description: "Add a new OTP SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor."
};
}
@@ -677,8 +677,8 @@ service AuthService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "User Authentication Factor"
summary: "Remove One-Time Password (OTP) SMS";
description: "Remove the configured One-Time Password (OTP) SMS factor of the authenticated user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward."
summary: "Remove OTP SMS";
description: "Remove the configured OTP SMS factor of the authenticated user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward."
};
}
@@ -693,8 +693,8 @@ service AuthService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "User Authentication Factor"
summary: "Add One-Time Password (OTP) Email";
description: "Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor."
summary: "Add OTP Email";
description: "Add a new OTP Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor."
};
}
@@ -709,8 +709,8 @@ service AuthService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "User Authentication Factor"
summary: "Remove One-Time Password (OTP) Email";
description: "Remove the configured One-Time Password (OTP) Email factor of the authenticated user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward."
summary: "Remove OTP Email";
description: "Remove the configured OTP Email factor of the authenticated user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward."
};
}
+24 -24
View File
@@ -1454,7 +1454,7 @@ service ManagementService {
//
// Deprecated: use [user service v2 RemoveTOTP](apis/resources/user_service_v2/user-service-remove-totp.api.mdx) instead.
//
// Remove the configured One-Time Password (OTP) as a factor from the user. OTP is an authentication app, like Authy or Google/Microsoft Authenticator.
// Remove the configured OTP as a factor from the user. OTP is an authentication app, like Authy or Google/Microsoft Authenticator.
rpc RemoveHumanAuthFactorOTP(RemoveHumanAuthFactorOTPRequest) returns (RemoveHumanAuthFactorOTPResponse) {
option (google.api.http) = {
delete: "/users/{user_id}/auth_factors/otp"
@@ -1524,7 +1524,7 @@ service ManagementService {
//
// Deprecated: use [user service v2 RemoveOTPSMS](apis/resources/user_service_v2/user-service-remove-otpsms.api.mdx) instead.
//
// Remove the configured One-Time Password (OTP) SMS as a factor from the user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward.
// Remove the configured OTP SMS as a factor from the user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward.
rpc RemoveHumanAuthFactorOTPSMS(RemoveHumanAuthFactorOTPSMSRequest) returns (RemoveHumanAuthFactorOTPSMSResponse) {
option (google.api.http) = {
delete: "/users/{user_id}/auth_factors/otp_sms"
@@ -1559,7 +1559,7 @@ service ManagementService {
//
// Deprecated: use [user service v2 RemoveOTPEmail](apis/resources/user_service_v2/user-service-remove-otp-email.api.mdx) instead.
//
// Remove the configured One-Time Password (OTP) Email as a factor from the user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward.
// Remove the configured OTP Email as a factor from the user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward.
rpc RemoveHumanAuthFactorOTPEmail(RemoveHumanAuthFactorOTPEmailRequest) returns (RemoveHumanAuthFactorOTPEmailResponse) {
option (google.api.http) = {
delete: "/users/{user_id}/auth_factors/otp_email"
@@ -6493,8 +6493,8 @@ service ManagementService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Get Custom Verify SMS OTP Message Text";
description: "Get the custom text of the verify SMS OTP message that is set on the organization. The message is sent when an SMS One-time password should be verified and a notification provider is configured."
summary: "Get Custom Verify OTP SMS Message Text";
description: "Get the custom text of the verify OTP SMS message that is set on the organization. The message is sent when an OTP SMS should be verified and a notification provider is configured."
parameters: {
headers: {
name: "x-zitadel-orgid";
@@ -6517,8 +6517,8 @@ service ManagementService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Get Default Verify SMS OTP Message Text";
description: "Get the default text of the verify SMS OTP message that is set on the instance or as translation files in Zitadel itself. The message is sent when an SMS One-time password should be verified and a notification provider is configured."
summary: "Get Default Verify OTP SMS Message Text";
description: "Get the default text of the verify OTP SMS message that is set on the instance or as translation files in Zitadel itself. The message is sent when an OTP SMS should be verified and a notification provider is configured."
parameters: {
headers: {
name: "x-zitadel-orgid";
@@ -6542,8 +6542,8 @@ service ManagementService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Set Custom Verify SMS OTP Reset Message Text";
description: "Set the custom text of the verify SMS OTP message for the organization. The message is sent when an SMS One-time password should be verified and a notification provider is configured. The Following Variables can be used: {{.Code}} {{.UserName}} {{.FirstName}} {{.LastName}} {{.NickName}} {{.DisplayName}} {{.LastEmail}} {{.VerifiedEmail}} {{.LastPhone}} {{.VerifiedPhone}} {{.PreferredLoginName}} {{.LoginNames}} {{.ChangeDate}} {{.CreationDate}}"
summary: "Set Custom Verify OTP SMS Reset Message Text";
description: "Set the custom text of the verify OTP SMS message for the organization. The message is sent when an OTP SMS should be verified and a notification provider is configured. The Following Variables can be used: {{.Code}} {{.UserName}} {{.FirstName}} {{.LastName}} {{.NickName}} {{.DisplayName}} {{.LastEmail}} {{.VerifiedEmail}} {{.LastPhone}} {{.VerifiedPhone}} {{.PreferredLoginName}} {{.LoginNames}} {{.ChangeDate}} {{.CreationDate}}"
parameters: {
headers: {
name: "x-zitadel-orgid";
@@ -6566,8 +6566,8 @@ service ManagementService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Reset Custom Verify SMS OTP Message Text to Default";
description: "Removes the custom text of the verify SMS OTP message from the organization and therefore the default texts will trigger for the users afterward."
summary: "Reset Custom Verify OTP SMS Message Text to Default";
description: "Removes the custom text of the verify OTP SMS message from the organization and therefore the default texts will trigger for the users afterward."
parameters: {
headers: {
name: "x-zitadel-orgid";
@@ -6590,8 +6590,8 @@ service ManagementService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Get Custom Verify Email OTP Message Text";
description: "Get the custom text of the verify Email OTP message that is set on the organization. The message is sent when an Email One-time password should be verified and a notification provider is configured."
summary: "Get Custom Verify OTP Email Message Text";
description: "Get the custom text of the verify OTP Email message that is set on the organization. The message is sent when an OTP Email Email should be verified and a notification provider is configured."
parameters: {
headers: {
name: "x-zitadel-orgid";
@@ -6614,8 +6614,8 @@ service ManagementService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Get Default Verify Email OTP Message Text";
description: "Get the default text of the verify Email OTP message that is set on the instance or as translation files in Zitadel itself. The message is sent when an Email One-time password should be verified and a notification provider is configured."
summary: "Get Default Verify OTP Email Message Text";
description: "Get the default text of the verify OTP Email message that is set on the instance or as translation files in Zitadel itself. The message is sent when an OTP Email Email should be verified and a notification provider is configured."
parameters: {
headers: {
name: "x-zitadel-orgid";
@@ -6639,8 +6639,8 @@ service ManagementService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Set Custom Verify Email OTP Reset Message Text";
description: "Set the custom text of the verify Email OTP message for the organization. The message is sent when an Email One-time password should be verified and a notification provider is configured. The Following Variables can be used: {{.Code}} {{.UserName}} {{.FirstName}} {{.LastName}} {{.NickName}} {{.DisplayName}} {{.LastEmail}} {{.VerifiedEmail}} {{.LastPhone}} {{.VerifiedPhone}} {{.PreferredLoginName}} {{.LoginNames}} {{.ChangeDate}} {{.CreationDate}}"
summary: "Set Custom Verify OTP Email Reset Message Text";
description: "Set the custom text of the verify OTP Email message for the organization. The message is sent when an OTP Email Email should be verified and a notification provider is configured. The Following Variables can be used: {{.Code}} {{.UserName}} {{.FirstName}} {{.LastName}} {{.NickName}} {{.DisplayName}} {{.LastEmail}} {{.VerifiedEmail}} {{.LastPhone}} {{.VerifiedPhone}} {{.PreferredLoginName}} {{.LoginNames}} {{.ChangeDate}} {{.CreationDate}}"
parameters: {
headers: {
name: "x-zitadel-orgid";
@@ -6663,8 +6663,8 @@ service ManagementService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Message Texts";
summary: "Reset Custom Verify Email OTP Message Text to Default";
description: "Removes the custom text of the verify Email OTP message from the organization and therefore the default texts will trigger for the users afterward."
summary: "Reset Custom Verify OTP Email Message Text to Default";
description: "Removes the custom text of the verify OTP Email message from the organization and therefore the default texts will trigger for the users afterward."
parameters: {
headers: {
name: "x-zitadel-orgid";
@@ -12209,7 +12209,7 @@ message SetCustomVerifySMSOTPMessageTextRequest {
string text = 2 [
(validate.rules).string = {max_len: 800},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"Please visit {{ .VerifyURL }} or copy the one-time password {{.OTP}} and paste it to to the authentication screen in order to authenticate at Zitadel within the next five minutes.\""
example: "\"Please visit {{ .VerifyURL }} or copy the OTP {{.OTP}} and paste it to to the authentication screen in order to authenticate at Zitadel within the next five minutes.\""
max_length: 800;
}
];
@@ -12253,21 +12253,21 @@ message SetCustomVerifyEmailOTPMessageTextRequest {
string title = 2 [
(validate.rules).string = {max_bytes: 2000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"ZITADEL - One-time Password\""
example: "\"ZITADEL - OTP\""
max_length: 500;
}
];
string pre_header = 3 [
(validate.rules).string = {max_bytes: 2000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"Verify One-time Password \""
example: "\"Verify OTP \""
max_length: 500;
}
];
string subject = 4 [
(validate.rules).string = {max_bytes: 2000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"Verify One-time Password\""
example: "\"Verify OTP\""
max_length: 500;
}
];
@@ -12281,7 +12281,7 @@ message SetCustomVerifyEmailOTPMessageTextRequest {
string text = 6 [
(validate.rules).string = {max_bytes: 40000},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"Please use the \\\"Authenticate\\\" button or copy the one-time password {{.OTP}} and paste it to to the authentication screen in order to authenticate at Zitadel within the next five minutes.\""
example: "\"Please use the \\\"Authenticate\\\" button or copy the OTP {{.OTP}} and paste it to to the authentication screen in order to authenticate at Zitadel within the next five minutes.\""
max_length: 10000;
}
];
@@ -18,12 +18,12 @@ message Authenticators {
Password password = 2;
// Meta information about the user's WebAuthN authenticators.
repeated WebAuthN web_auth_n = 3;
// A list of the user's time-based one-time password (TOTP) authenticators,
// A list of the user's TOTP authenticators,
// incl. the name for identification.
repeated TOTP totps = 4;
// A list of the user's one-time password (OTP) SMS authenticators.
// A list of the user's OTP SMS authenticators.
repeated OTPSMS otp_sms = 5;
// A list of the user's one-time password (OTP) Email authenticators.
// A list of the user's OTP Email authenticators.
repeated OTPEmail otp_email = 6;
// A list of the user's authentication keys. They can be used to authenticate e.g. by JWT Profile.
repeated AuthenticationKey authentication_keys = 7;
@@ -154,7 +154,7 @@ message VerifyWebAuthNRegistration {
}
message OTPSMS {
// unique identifier of the one-time password (OTP) SMS authenticator.
// unique identifier of the OTP SMS authenticator.
string otp_sms_id = 1 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"69629023906488334\""
@@ -171,7 +171,7 @@ message OTPSMS {
}
message OTPEmail {
// unique identifier of the one-time password (OTP) Email authenticator.
// unique identifier of the OTP Email authenticator.
string otp_email_id = 1 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"69629023906488334\""
@@ -188,7 +188,7 @@ message OTPEmail {
}
message TOTP {
// unique identifier of the time-based one-time password (TOTP) authenticator.
// unique identifier of the TOTP authenticator.
string totp_id = 1 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"69629023906488334\""
@@ -719,7 +719,7 @@ service ZITADELUsers {
// Start a TOTP registration
//
// Start the registration of a new time-based one-time password (TOTP) generator for a user.
// Start the registration of a new TOTP generator for a user.
// As a response a secret is returned, which is used to initialize a TOTP app or device.
rpc StartTOTPRegistration (StartTOTPRegistrationRequest) returns (StartTOTPRegistrationResponse) {
option (google.api.http) = {
@@ -743,7 +743,7 @@ service ZITADELUsers {
// Verify a TOTP registration
//
// Verify the time-based one-time password (TOTP) registration with the generated code.
// Verify the TOTP registration with the generated code.
rpc VerifyTOTPRegistration (VerifyTOTPRegistrationRequest) returns (VerifyTOTPRegistrationResponse) {
option (google.api.http) = {
post: "/resources/v3alpha/users/{id}/totp/{totp_id}/_verify"
@@ -767,7 +767,7 @@ service ZITADELUsers {
// Remove a TOTP authenticator
//
// Remove an existing time-based one-time password (TOTP) authenticator from a user, so it cannot be used for authentication anymore.
// Remove an existing TOTP authenticator from a user, so it cannot be used for authentication anymore.
rpc RemoveTOTPAuthenticator (RemoveTOTPAuthenticatorRequest) returns (RemoveTOTPAuthenticatorResponse) {
option (google.api.http) = {
delete: "/resources/v3alpha/users/{id}/totp/{totp_id}"
@@ -790,7 +790,7 @@ service ZITADELUsers {
// Add a OTP SMS authenticator
//
// Add a new one-time password (OTP) SMS authenticator to a user.
// Add a new OTP SMS authenticator to a user.
// If the phone is not passed as verified, a verification code will be generated,
// which can be either returned or will be sent to the user by SMS.
rpc AddOTPSMSAuthenticator (AddOTPSMSAuthenticatorRequest) returns (AddOTPSMSAuthenticatorResponse) {
@@ -841,7 +841,7 @@ service ZITADELUsers {
// Remove a OTP SMS authenticator
//
// Remove an existing one-time password (OTP) SMS authenticator from a user, so it cannot be used for authentication anymore.
// Remove an existing OTP SMS authenticator from a user, so it cannot be used for authentication anymore.
rpc RemoveOTPSMSAuthenticator (RemoveOTPSMSAuthenticatorRequest) returns (RemoveOTPSMSAuthenticatorResponse) {
option (google.api.http) = {
delete: "/resources/v3alpha/users/{id}/otp_sms/{otp_sms_id}"
@@ -864,7 +864,7 @@ service ZITADELUsers {
// Add a OTP Email authenticator
//
// Add a new one-time password (OTP) Email authenticator to a user.
// Add a new OTP Email authenticator to a user.
// If the email is not passed as verified, a verification code will be generated,
// which can be either returned or will be sent to the user by email.
rpc AddOTPEmailAuthenticator (AddOTPEmailAuthenticatorRequest) returns (AddOTPEmailAuthenticatorResponse) {
@@ -915,7 +915,7 @@ service ZITADELUsers {
// Remove a OTP Email authenticator
//
// Remove an existing one-time password (OTP) Email authenticator from a user, so it cannot be used for authentication anymore.
// Remove an existing OTP Email authenticator from a user, so it cannot be used for authentication anymore.
rpc RemoveOTPEmailAuthenticator (RemoveOTPEmailAuthenticatorRequest) returns (RemoveOTPEmailAuthenticatorResponse) {
option (google.api.http) = {
delete: "/resources/v3alpha/users/{id}/otp_email/{otp_email_id}"
+2 -2
View File
@@ -95,12 +95,12 @@ message WebAuthNFactor {
}
message TOTPFactor {
// The timestamp when the Time-based One-Time Password was last verified.
// The timestamp when the TOTP was last verified.
google.protobuf.Timestamp verified_at = 1;
}
message OTPFactor {
// The timestamp when the One-Time Password was last verified either by SMS or Email.
// The timestamp when the OTP was last verified either by SMS or Email.
google.protobuf.Timestamp verified_at = 1;
}
@@ -516,20 +516,20 @@ message Checks {
// containing the verification time.
optional CheckIDPIntent idp_intent = 4;
// Check the Time-based One-Time Password and update the session on success.
// Check the TOTP and update the session on success.
// Requires that the user is already checked, either in the previous or the same request.
// On successful TOTP check, the session's `factors` field will be updated with a `totp` factor,
// containing the verification time.
optional CheckTOTP totp = 5;
// Check the One-Time Password sent over SMS and update the session on success.
// Check the OTP sent over SMS and update the session on success.
// Requires that the user is already checked, either in the previous or the same request.
// On successful OTP SMS check, the session's `factors` field will be updated with an `otp` factor,
// containing the verification time.
// Note that the OTP code is valid for a single use only and will be invalidated after a successful check.
optional CheckOTP otp_sms = 6;
// Check the One-Time Password sent over Email and update the session on success.
// Check the OTP sent over Email and update the session on success.
// Requires that the user is already checked, either in the previous or the same request.
// On successful OTP Email check, the session's `factors` field will be updated with an `otp` factor,
// containing the verification time.
@@ -626,7 +626,7 @@ message CheckIDPIntent {
}
message CheckTOTP {
// The Time-based One-Time Password generated by the user's TOTP authenticator app.
// The TOTP generated by the user's TOTP authenticator app.
string code = 1 [
(validate.rules).string = {min_len: 6, max_len: 6},
(google.api.field_behavior) = REQUIRED,
@@ -639,7 +639,7 @@ message CheckTOTP {
}
message CheckOTP {
// The One-Time Password sent over SMS or Email of the user to be checked.
// The OTP sent over SMS or Email of the user to be checked.
string code = 1 [
(validate.rules).string = {min_len: 1},
(google.api.field_behavior) = REQUIRED,
+2 -2
View File
@@ -116,7 +116,7 @@ message WebAuthNFactor {
message TOTPFactor {
google.protobuf.Timestamp verified_at = 1 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "\"time when the Time-based One-Time Password was last checked\"";
description: "\"time when the TOTP was last checked\"";
}
];
}
@@ -124,7 +124,7 @@ message TOTPFactor {
message OTPFactor {
google.protobuf.Timestamp verified_at = 1 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "\"time when the One-Time Password was last checked\"";
description: "\"time when the OTP was last checked\"";
}
];
}
@@ -410,17 +410,17 @@ message Checks {
];
optional CheckTOTP totp = 5 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "\"Checks the Time-based One-Time Password and updates the session on success. Requires that the user is already checked, either in the previous or the same request.\"";
description: "\"Checks the TOTP and updates the session on success. Requires that the user is already checked, either in the previous or the same request.\"";
}
];
optional CheckOTP otp_sms = 6 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "\"Checks the One-Time Password sent over SMS and updates the session on success. Requires that the user is already checked, either in the previous or the same request.\"";
description: "\"Checks the OTP sent over SMS and updates the session on success. Requires that the user is already checked, either in the previous or the same request.\"";
}
];
optional CheckOTP otp_email = 7 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "\"Checks the One-Time Password sent over Email and updates the session on success. Requires that the user is already checked, either in the previous or the same request.\"";
description: "\"Checks the OTP sent over Email and updates the session on success. Requires that the user is already checked, either in the previous or the same request.\"";
}
];
}
+6 -6
View File
@@ -1088,7 +1088,7 @@ service UserService {
// Add OTP SMS for a user
//
// Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor..
// Add a new OTP SMS factor to the authenticated user. OTP SMS will enable the user to verify an OTP with the latest verified phone number. The phone number has to be verified to add the second factor..
rpc AddOTPSMS (AddOTPSMSRequest) returns (AddOTPSMSResponse) {
option (google.api.http) = {
post: "/v2/users/{user_id}/otp_sms"
@@ -1116,9 +1116,9 @@ service UserService {
};
}
// Remove One-Time Password (OTP) SMS from a user
// Remove OTP SMS from a user
//
// Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward.
// Remove the configured OTP SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward.
rpc RemoveOTPSMS (RemoveOTPSMSRequest) returns (RemoveOTPSMSResponse) {
option (google.api.http) = {
delete: "/v2/users/{user_id}/otp_sms"
@@ -1194,7 +1194,7 @@ service UserService {
// Add OTP Email for a user
//
// Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor..
// Add a new OTP Email factor to the authenticated user. OTP Email will enable the user to verify an OTP with the latest verified email. The email has to be verified to add the second factor..
rpc AddOTPEmail (AddOTPEmailRequest) returns (AddOTPEmailResponse) {
option (google.api.http) = {
post: "/v2/users/{user_id}/otp_email"
@@ -1222,9 +1222,9 @@ service UserService {
};
}
// Remove One-Time Password (OTP) Email from a user
// Remove OTP Email from a user
//
// Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward.
// Remove the configured OTP Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward.
rpc RemoveOTPEmail (RemoveOTPEmailRequest) returns (RemoveOTPEmailResponse) {
option (google.api.http) = {
delete: "/v2/users/{user_id}/otp_email"
+6 -6
View File
@@ -796,7 +796,7 @@ service UserService {
// Add OTP SMS for a user
//
// Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor.
// Add a new OTP SMS factor to the authenticated user. OTP SMS will enable the user to verify an OTP with the latest verified phone number. The phone number has to be verified to add the second factor.
//
// Deprecated: please move to the corresponding endpoint under user service v2 (GA).
rpc AddOTPSMS (AddOTPSMSRequest) returns (AddOTPSMSResponse) {
@@ -821,9 +821,9 @@ service UserService {
};
}
// Remove One-Time Password (OTP) SMS from a user
// Remove OTP SMS from a user
//
// Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward.
// Remove the configured OTP SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward.
//
// Deprecated: please move to the corresponding endpoint under user service v2 (GA).
rpc RemoveOTPSMS (RemoveOTPSMSRequest) returns (RemoveOTPSMSResponse) {
@@ -849,7 +849,7 @@ service UserService {
// Add OTP Email for a user
//
// Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor.
// Add a new OTP Email factor to the authenticated user. OTP Email will enable the user to verify an OTP with the latest verified email. The email has to be verified to add the second factor.
//
// Deprecated: please move to the corresponding endpoint under user service v2 (GA).
rpc AddOTPEmail (AddOTPEmailRequest) returns (AddOTPEmailResponse) {
@@ -874,9 +874,9 @@ service UserService {
};
}
// Remove One-Time Password (OTP) Email from a user
// Remove OTP Email from a user
//
// Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward.
// Remove the configured OTP Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward.
//
// Deprecated: please move to the corresponding endpoint under user service v2 (GA).
rpc RemoveOTPEmail (RemoveOTPEmailRequest) returns (RemoveOTPEmailResponse) {