1 | import { Request } from 'express';
|
2 | import { Profile } from 'passport-auth0';
|
3 | import { IVerifyOptions } from 'passport-local';
|
4 | import { DatastoreProvider } from '../datastore/datastore.provider';
|
5 | import { Configuration, IUser } from '../index';
|
6 | import { AuthService } from './auth.service';
|
7 | import { UserService } from './user.service';
|
8 | export declare class AuthConfigurer {
|
9 | private readonly configuration;
|
10 | private readonly userService;
|
11 | private readonly authService;
|
12 | private readonly datastore;
|
13 | private readonly logger;
|
14 | constructor(datastoreProvider: DatastoreProvider, configuration: Configuration, userService: UserService<IUser>, authService: AuthService);
|
15 | private init;
|
16 | beginAuthenticateGoogle(): any;
|
17 | completeAuthenticateGoogle(): any;
|
18 | beginAuthenticateSaml(): any;
|
19 | completeAuthenticateSaml(): any;
|
20 | beginAuthenticateOidc(): any;
|
21 | completeAuthenticateOidc(): any;
|
22 | beginAuthenticateAuth0(): any;
|
23 | completeAuthenticateAuth0(): any;
|
24 | getSignoutUrlAuth0(): string;
|
25 | authenticateLocal(): any;
|
26 | authenticateFake(): any;
|
27 | validate: (username: string, password: string, done: (error: Error | null, user: false | IUser) => void) => Promise<void>;
|
28 | validateFakeLogin: (req: Request, username: string, password: string, done: (error: Error | null, user: false | IUser) => void) => Promise<void>;
|
29 | validateGmail: (accessToken: string, refreshToken: string, profile: object, done: (error: Error | null, user: false | IUser) => void) => Promise<void>;
|
30 | validateSaml: (profile: any, done: any) => Promise<void>;
|
31 | validateOidc: (_issuer: any, _sub: any, profile: any, _accessToken: any, _refreshToken: any, done: (error: Error | null, user: false | IUser) => void) => Promise<void>;
|
32 | validateAuth0: (accessToken: string, refreshToken: string, extraParams: any, profile: Profile, done: (error: Error | null, user: false | IUser) => void) => Promise<void>;
|
33 | validateAuth: (done: (error: Error | null, user: false | IUser, options?: IVerifyOptions | undefined) => void, auth: () => Promise<IUser>) => Promise<void>;
|
34 | }
|