UNPKG

@nestjs-mod/sso

Version:

NestJS SDK for Single Sign-On on NestJS and Angular with webhooks and social authorization (Wrapper for https://www.npmjs.com/package/@nestjs-mod/sso-rest-sdk)

24 lines (23 loc) 1.13 kB
import { SsoRestSdkService, SsoUserDto } from '@nestjs-mod/sso-rest-sdk'; import { ExecutionContext, OnModuleInit } from '@nestjs/common'; import { Reflector } from '@nestjs/core'; import { SsoConfiguration } from './sso.configuration'; import { SsoStaticEnvironments } from './sso.environments'; export declare class SsoService implements OnModuleInit { private readonly reflector; private readonly ssoConfiguration; private readonly ssoStaticEnvironments; private logger; private ssoRestSdkService; private adminSsoRestSdkService; constructor(reflector: Reflector, ssoConfiguration: SsoConfiguration, ssoStaticEnvironments: SsoStaticEnvironments); onModuleInit(): void; getSsoClient(isAdmin?: boolean): SsoRestSdkService; getUserFromRequest(ctx: ExecutionContext, checkAccess?: boolean): Promise<SsoUserDto | undefined>; private setSkippedBySsoIfUserIsEmpty; private setInfoOfExternalUserIdToRequest; private checkAccessValidator; private tryGetOrCreateCurrentUserWithExternalUserId; private getRequestFromExecutionContext; private getHandlersReflectMetadata; }