import { injectable } from '@cloudbeaver/core-di' ; import { PluginManagerService , PluginSettings } from '@cloudbeaver/core-plugin' ; const defaultSettings = { baseAuthProvider : undefined as undefined | string , primaryAuthProvider : 'local' , } ; export type AuthSettings = typeof defaultSettings ; @ injectable ( ) export class AuthSettingsService { readonly settings : PluginSettings < AuthSettings > ; constructor ( private readonly pluginManagerService ) { this . settings = this . pluginManagerService . getPluginSettings ( 'core.authentication' , defaultSettings ) ; } }