Fixed partial handling and added cookies
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { type RegularTagNode, type TextNode } from "@melvdouc/xml-parser";
|
||||
|
||||
export interface AppProperties {
|
||||
name: string;
|
||||
icon: string;
|
||||
@@ -6,4 +8,43 @@ export interface AppProperties {
|
||||
hint: string;
|
||||
}
|
||||
|
||||
export interface CasTagNode extends RegularTagNode {
|
||||
children: [TextNode];
|
||||
}
|
||||
|
||||
export interface CasGroupNode extends RegularTagNode {
|
||||
children: CasTagNode[];
|
||||
}
|
||||
|
||||
export interface CasResponse extends RegularTagNode {
|
||||
children: [TextNode, CasGroupNode];
|
||||
}
|
||||
|
||||
export interface CasContent {
|
||||
amuCampus: string;
|
||||
amuComposante: string;
|
||||
amuDateValidation: string;
|
||||
coGroup: string;
|
||||
eduPersonPrimaryAffiliation: string;
|
||||
eduPersonPrincipalName: string;
|
||||
mail: string;
|
||||
displayName: string;
|
||||
givenName: string;
|
||||
memberOf: string[];
|
||||
sn: string;
|
||||
supannCivilite: string;
|
||||
supannEntiteAffectation: string;
|
||||
supannEtuAnneeInscription: string;
|
||||
supannEtuEtape: string;
|
||||
uid: string;
|
||||
}
|
||||
|
||||
export interface LoginJWT {
|
||||
iss: "PolyMPR";
|
||||
iat: number;
|
||||
exp: number;
|
||||
aud: "PolyMPR";
|
||||
user: CasContent;
|
||||
}
|
||||
|
||||
export type EmptyObject = Record<string | number | symbol, never>;
|
||||
|
||||
Reference in New Issue
Block a user