mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix: CB-796 skip local authorization
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
import { AdministrationScreenService } from '@cloudbeaver/core-administration';
|
||||
import { AppScreenService } from '@cloudbeaver/core-app';
|
||||
import { AppAuthService, AuthProviderContext, AuthProviderService, AuthProvidersResource, UserInfoResource } from '@cloudbeaver/core-authentication';
|
||||
import { AppAuthService, AuthProviderContext, AuthProviderService, AuthProvidersResource, AUTH_PROVIDER_LOCAL_ID, UserInfoResource } from '@cloudbeaver/core-authentication';
|
||||
import { injectable, Bootstrap } from '@cloudbeaver/core-di';
|
||||
import { NotificationService } from '@cloudbeaver/core-events';
|
||||
import type { IExecutorHandler } from '@cloudbeaver/core-executor';
|
||||
@@ -93,6 +93,12 @@ export class AuthenticationService extends Bootstrap {
|
||||
load(): void { }
|
||||
|
||||
private requestAuthProviderHandler: IExecutorHandler<ObjectOrigin> = async (data, contexts) => {
|
||||
if (data.type === AUTH_PROVIDER_LOCAL_ID) {
|
||||
const provider = contexts.getContext(AuthProviderContext);
|
||||
provider.auth();
|
||||
return;
|
||||
}
|
||||
|
||||
await this.authProvidersResource.load();
|
||||
await this.userInfoResource.load();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user