@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
17 lines (16 loc) • 408 B
TypeScript
import { HarvardEduPerson } from './harvardEduPerson';
export interface SuccessResponse {
authenticationSuccess: {
user: string;
attributes: HarvardEduPerson;
};
}
export interface FailureResponse {
authenticationFailure: {
code: string;
description: string;
};
}
export interface HarvardKeyResponse {
serviceResponse: SuccessResponse | FailureResponse;
}