add oauth app connected

This commit is contained in:
lendry
2026-06-26 10:49:34 +03:00
parent d5e6b58955
commit b81c0cedbb
18 changed files with 838 additions and 59 deletions

View File

@@ -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);