import * as plugins from '../plugins.ts'; import * as data from '../data/index.ts'; // ============================================================================ // OAuth / External Auth Requests // ============================================================================ export interface IReq_OAuthAuthorize extends plugins.typedrequestInterfaces.implementsTR< plugins.typedrequestInterfaces.ITypedRequest, IReq_OAuthAuthorize > { method: 'oauthAuthorize'; request: { providerId: string; returnUrl?: string; }; response: { redirectUrl: string; }; } export interface IReq_OAuthCallback extends plugins.typedrequestInterfaces.implementsTR< plugins.typedrequestInterfaces.ITypedRequest, IReq_OAuthCallback > { method: 'oauthCallback'; request: { providerId: string; code: string; state: string; }; response: { identity?: data.IIdentity; user?: data.IUser; isNewUser?: boolean; errorCode?: string; errorMessage?: string; }; } export interface IReq_LdapLogin extends plugins.typedrequestInterfaces.implementsTR< plugins.typedrequestInterfaces.ITypedRequest, IReq_LdapLogin > { method: 'ldapLogin'; request: { providerId: string; username: string; password: string; }; response: { identity?: data.IIdentity; user?: data.IUser; isNewUser?: boolean; errorCode?: string; errorMessage?: string; }; }