graphdb-workbench
Version:
The web application for GraphDB APIs
26 lines (25 loc) • 1.05 kB
TypeScript
import { AuthStrategyType } from '../../../models/security/authentication';
import { BaseGdbLoginStrategy } from './base-gdb-login-strategy';
export declare class ExternalStrategy extends BaseGdbLoginStrategy {
private readonly securityContextService;
type: AuthStrategyType;
/**
* Initializes the authentication provider. Since the user is externally authenticated, we assume he is already logged in.
* @returns Promise resolving to true, as the external user is assumed to be authenticated.
*/
initialize(): Promise<boolean>;
/**
* Checks if a user is currently authenticated.
* @returns True if a user is authenticated, false otherwise.
*/
isAuthenticated(): boolean;
/**
* Logs out the current user. Since the user is externally authenticated, this method throws an error.
*/
logout(): Promise<void>;
/**
* Indicates that this strategy is for external users.
* @returns true, as this strategy is for external authentication.
*/
isExternal(): boolean;
}