add oauth app connected
This commit is contained in:
@@ -791,6 +791,7 @@ export class AuthGrpcController {
|
||||
scope: string;
|
||||
state?: string;
|
||||
nonce?: string;
|
||||
grantConsent?: boolean;
|
||||
}) {
|
||||
return this.oauthCore.authorize(command);
|
||||
}
|
||||
@@ -805,6 +806,26 @@ export class AuthGrpcController {
|
||||
return this.oauthCore.userInfo(command.accessToken);
|
||||
}
|
||||
|
||||
@GrpcMethod('OAuthCoreService', 'CheckOAuthConsent')
|
||||
checkOAuthConsent(command: { userId: string; clientId: string; scope: string }) {
|
||||
return this.oauthCore.checkConsent(command.userId, command.clientId, command.scope);
|
||||
}
|
||||
|
||||
@GrpcMethod('OAuthCoreService', 'GrantOAuthConsent')
|
||||
grantOAuthConsent(command: { userId: string; clientId: string; scope: string }) {
|
||||
return this.oauthCore.grantConsent(command.userId, command.clientId, command.scope);
|
||||
}
|
||||
|
||||
@GrpcMethod('OAuthCoreService', 'ListUserOAuthConsents')
|
||||
listUserOAuthConsents(command: { userId: string }) {
|
||||
return this.oauthCore.listUserConsents(command.userId);
|
||||
}
|
||||
|
||||
@GrpcMethod('OAuthCoreService', 'RevokeOAuthConsent')
|
||||
revokeOAuthConsent(command: { userId: string; consentId: string }) {
|
||||
return this.oauthCore.revokeConsent(command.userId, command.consentId);
|
||||
}
|
||||
|
||||
@GrpcMethod('OtpService', 'SendOtp')
|
||||
sendOtp(command: { target: string; channel: string; purpose: string; userId?: string }) {
|
||||
return this.otp.send(command);
|
||||
|
||||
Reference in New Issue
Block a user