mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-28 16:57:23 +00:00
fix: rename lifetime to expiration of pwless link in ImportHumanUserResponse (#2687)
This commit is contained in:
parent
8d4b2dcc75
commit
ebe2fbe1d5
@ -5081,7 +5081,8 @@ This is an empty response
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| link | string | - | |
|
||||
| lifetime | google.protobuf.Duration | - | |
|
||||
| lifetime | google.protobuf.Duration | deprecated: use expiration instead | |
|
||||
| expiration | google.protobuf.Duration | - | |
|
||||
|
||||
|
||||
|
||||
|
@ -184,8 +184,9 @@ func (s *Server) ImportHumanUser(ctx context.Context, req *mgmt_pb.ImportHumanUs
|
||||
}
|
||||
if code != nil {
|
||||
resp.PasswordlessRegistration = &mgmt_pb.ImportHumanUserResponse_PasswordlessRegistration{
|
||||
Link: code.Link(s.systemDefaults.Notifications.Endpoints.PasswordlessRegistration),
|
||||
Lifetime: durationpb.New(code.Expiration),
|
||||
Link: code.Link(s.systemDefaults.Notifications.Endpoints.PasswordlessRegistration),
|
||||
Lifetime: durationpb.New(code.Expiration),
|
||||
Expiration: durationpb.New(code.Expiration),
|
||||
}
|
||||
}
|
||||
return resp, nil
|
||||
|
@ -580,7 +580,6 @@ service ManagementService {
|
||||
rpc AddPasswordlessRegistration(AddPasswordlessRegistrationRequest) returns (AddPasswordlessRegistrationResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/users/{user_id}/passwordless/_link"
|
||||
body: "*"
|
||||
};
|
||||
option (zitadel.v1.auth_option) = {
|
||||
permission: "user.credential.write"
|
||||
@ -3001,7 +3000,9 @@ message ImportHumanUserRequest {
|
||||
message ImportHumanUserResponse {
|
||||
message PasswordlessRegistration {
|
||||
string link = 1;
|
||||
//deprecated: use expiration instead
|
||||
google.protobuf.Duration lifetime = 2;
|
||||
google.protobuf.Duration expiration = 3;
|
||||
}
|
||||
|
||||
string user_id = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user