mocksaml/types/index.ts
2022-01-15 01:25:28 +05:30

40 lines
653 B
TypeScript

export type ServiceProvider = {
acs_url: string;
entity_id: string;
};
export type IdentityProvider = {
sso_url: string;
entity_id: string;
};
export type App = {
id: string;
name: string;
description?: string | null;
certificate: string;
} & ServiceProvider;
export type IdPMetadata = {
certificate: string;
fingerprint?: string;
} & IdentityProvider;
export type SAMLRequest = {
entityID: string;
callbackUrl: string;
signingKey: string;
};
export type AuthNRequest = {
RelayState: string;
SAMLRequest: SAMLRequest;
};
export type User = {
id: string;
email: string;
firstName: string;
lastName: string;
};