aaebd01058
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
27 lines
600 B
TypeScript
27 lines
600 B
TypeScript
export class AppURLManager {
|
|
|
|
static sourceSAML(slug: string, rest: string): string {
|
|
return `/source/saml/${slug}/${rest}`;
|
|
}
|
|
static sourceOAuth(slug: string, action: string): string {
|
|
return `/source/oauth/${action}/${slug}/`;
|
|
}
|
|
|
|
}
|
|
|
|
export class FlowURLManager {
|
|
|
|
static defaultUnenrollment(): string {
|
|
return "/flows/-/default/unenrollment/";
|
|
}
|
|
|
|
static configure(stageUuid: string, rest: string): string {
|
|
return `/flows/-/configure/${stageUuid}/${rest}`;
|
|
}
|
|
|
|
static cancel(): string {
|
|
return "/flows/-/cancel/";
|
|
}
|
|
|
|
}
|