Fixed partial handling and added cookies

This commit is contained in:
Kevin FEDYNA
2025-01-21 16:09:36 +01:00
parent b364f6cbab
commit fa66621abc
12 changed files with 158 additions and 48 deletions
+41
View File
@@ -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>;