UNPKG

@seas-computing/nestjs-harvard-key

Version:

This repository provides a way to connect NestJS applications to HarvardKey and provide a rudimentary form of authorization (in the form of route guards) out of the box

10 lines (9 loc) 381 B
import { HttpService } from '@nestjs/axios'; import { HarvardEduPerson } from './types/harvardEduPerson'; import { HarvardKeyModuleOptions } from './types/harvardKeyModuleOptions'; export declare class CASService { private http; private config; constructor(http: HttpService, config: HarvardKeyModuleOptions); validate(ticket: string): Promise<HarvardEduPerson>; }