mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-29 18:42:15 +00:00
feat(console): advanced passwordless api (#2183)
* feat: console add passwordless * fix: token name Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
co-authored by
Livio Amstutz
parent
999ac8d508
commit
cdfdc69341
@@ -8,6 +8,8 @@ import {
|
||||
AddMyAuthFactorOTPResponse,
|
||||
AddMyAuthFactorU2FRequest,
|
||||
AddMyAuthFactorU2FResponse,
|
||||
AddMyPasswordlessLinkRequest,
|
||||
AddMyPasswordlessLinkResponse,
|
||||
AddMyPasswordlessRequest,
|
||||
AddMyPasswordlessResponse,
|
||||
GetMyEmailRequest,
|
||||
@@ -54,6 +56,8 @@ import {
|
||||
ResendMyEmailVerificationResponse,
|
||||
ResendMyPhoneVerificationRequest,
|
||||
ResendMyPhoneVerificationResponse,
|
||||
SendMyPasswordlessLinkRequest,
|
||||
SendMyPasswordlessLinkResponse,
|
||||
SetMyEmailRequest,
|
||||
SetMyEmailResponse,
|
||||
SetMyPhoneRequest,
|
||||
@@ -493,6 +497,16 @@ export class GrpcAuthService {
|
||||
).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public sendMyPasswordlessLink(): Promise<SendMyPasswordlessLinkResponse.AsObject> {
|
||||
const req = new SendMyPasswordlessLinkRequest();
|
||||
return this.grpcService.auth.sendMyPasswordlessLink(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public addMyPasswordlessLink(): Promise<AddMyPasswordlessLinkResponse.AsObject> {
|
||||
const req = new AddMyPasswordlessLinkRequest();
|
||||
return this.grpcService.auth.addMyPasswordlessLink(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public removeMyMultiFactorOTP(): Promise<RemoveMyAuthFactorOTPResponse.AsObject> {
|
||||
return this.grpcService.auth.removeMyAuthFactorOTP(
|
||||
new RemoveMyAuthFactorOTPRequest(), null,
|
||||
|
||||
@@ -309,6 +309,8 @@ import {
|
||||
ResetPrivacyPolicyToDefaultRequest,
|
||||
ResetPrivacyPolicyToDefaultResponse,
|
||||
SendHumanResetPasswordNotificationRequest,
|
||||
SendPasswordlessRegistrationRequest,
|
||||
SendPasswordlessRegistrationResponse,
|
||||
SetCustomDomainClaimedMessageTextRequest,
|
||||
SetCustomDomainClaimedMessageTextResponse,
|
||||
SetCustomInitMessageTextRequest,
|
||||
@@ -598,6 +600,12 @@ export class ManagementService {
|
||||
return this.grpcService.mgmt.removeHumanPasswordless(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public sendPasswordlessRegistration(userId: string): Promise<SendPasswordlessRegistrationResponse.AsObject> {
|
||||
const req = new SendPasswordlessRegistrationRequest();
|
||||
req.setUserId(userId);
|
||||
return this.grpcService.mgmt.sendPasswordlessRegistration(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public listLoginPolicyMultiFactors(): Promise<ListLoginPolicyMultiFactorsResponse.AsObject> {
|
||||
const req = new ListLoginPolicyMultiFactorsRequest();
|
||||
return this.grpcService.mgmt.listLoginPolicyMultiFactors(req, null).then(resp => resp.toObject());
|
||||
|
||||
Reference in New Issue
Block a user