dummyidp/src/app/app.ts
Ulysse Carion 7f173bcabf
Move to Next.js (#2)
* tmp

* reset

* begin conversion to nextjs

* more appeasing of stuff

* about to add shadcn

* tmp commit

* switch to new-york style

* fix nextjs build error

* tmp

* start hooking up users to login page

* e2e flows

* preview stuff

* shuffle around where assertion is displayed

* start copy stuff

* tooltip for lack of sp settings

* update footer

* add wordmark, navbar to index

* add scim stuff

* fix build error

* title, copy updates

* more copy, adjusting

* fix tailwindui weirdness

* fix copy

* instant setup

* hard-code insecure key

* footer copy, docslink urls

* subtitles, copy updates
2024-10-03 09:57:43 -07:00

23 lines
463 B
TypeScript

export type App = {
id: string;
users: AppUser[];
spAcsUrl?: string;
spEntityId?: string;
scimBaseUrl?: string;
scimBearerToken?: string;
};
export type AppUser = {
email: string;
firstName: string;
lastName: string;
};
export function appIdpEntityId(app: App): string {
return `https://dummyidp.com/apps/${app.id}`;
}
export function appIdpRedirectUrl(app: App): string {
return `https://${process.env.VERCEL_URL}/apps/${app.id}/sso`;
}