UNPKG

@alfresco/adf-core

Version:
43 lines (42 loc) 1.95 kB
/*! * @license * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { ModuleWithProviders, InjectionToken } from '@angular/core'; import { OAuthStorage } from 'angular-oauth2-oidc'; import { AuthModuleConfig } from './auth-config'; import { RedirectAuthService } from './redirect-auth.service'; import * as i0 from "@angular/core"; import * as i1 from "./auth-routing.module"; import * as i2 from "angular-oauth2-oidc"; import * as i3 from "./view/authentication-confirmation/authentication-confirmation.component"; export declare const JWT_STORAGE_SERVICE: InjectionToken<OAuthStorage>; /** * Create a Login Factory function * * @param redirectService auth redirect service * @returns a factory function */ export declare function loginFactory(redirectService: RedirectAuthService): () => Promise<boolean>; /** * @returns current instance of OAuthStorage */ export declare function oauthStorageFactory(): OAuthStorage; export declare class AuthModule { static forRoot(config?: AuthModuleConfig): ModuleWithProviders<AuthModule>; static ɵfac: i0.ɵɵFactoryDeclaration<AuthModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<AuthModule, never, [typeof i1.AuthRoutingModule, typeof i2.OAuthModule, typeof i3.AuthenticationConfirmationComponent], never>; static ɵinj: i0.ɵɵInjectorDeclaration<AuthModule>; }