404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.223.97.137: ~ $
/// <reference types="node" />
import { Response } from 'superagent';
import { ContentType, IClient, IConfig, OAuthServerConfig } from '../../definitions';
export interface AuthorizationParameters {
    [key: string]: string;
}
export interface TokenParameters {
    [key: string]: string;
}
export interface OAuth2FlowOptions {
    readonly redirectHost?: string;
    readonly redirectPort?: number;
    readonly accessTokenRequestContentType?: ContentType;
}
export interface OAuth2FlowDeps {
    readonly client: IClient;
    readonly config: IConfig;
}
export declare abstract class OAuth2Flow<T> {
    readonly e: OAuth2FlowDeps;
    abstract readonly flowName: string;
    readonly oauthConfig: OAuthServerConfig;
    readonly redirectHost: string;
    readonly redirectPort: number;
    readonly accessTokenRequestContentType: ContentType;
    constructor({ redirectHost, redirectPort, accessTokenRequestContentType }: OAuth2FlowOptions, e: OAuth2FlowDeps);
    get redirectUrl(): string;
    run(): Promise<T>;
    exchangeRefreshToken(refreshToken: string): Promise<T>;
    protected abstract generateAuthorizationParameters(challenge: string): AuthorizationParameters;
    protected abstract generateTokenParameters(authorizationCode: string, verifier: string): TokenParameters;
    protected abstract generateRefreshTokenParameters(refreshToken: string): TokenParameters;
    protected abstract checkValidExchangeTokenRes(res: Response): boolean;
    protected abstract getAuthConfig(): OAuthServerConfig;
    protected getSuccessHtml(): Promise<string>;
    protected getAuthorizationCode(): Promise<string>;
    protected exchangeAuthForAccessToken(authorizationCode: string, verifier: string): Promise<T>;
    protected generateVerifier(): string;
    protected generateChallenge(verifier: string): string;
    protected base64URLEncode(buffer: Buffer): string;
}

Filemanager

Name Type Size Permission Actions
auth.d.ts File 644 B 0644
auth.js File 909 B 0644
oauth.d.ts File 1.83 KB 0644
oauth.js File 4.66 KB 0644
openid.d.ts File 984 B 0644
openid.js File 1.61 KB 0644