mocksaml/lib/entity-id.ts

10 lines
336 B
TypeScript
Raw Permalink Normal View History

const getEntityId = (entityId: string, namespace: string | undefined) => {
return namespace ? `${entityId}/${namespace}` : entityId;
};
2024-01-21 01:01:09 +00:00
const getSSOUrl = (appUrl: string, namespace: string | undefined) => {
return `${appUrl}/api` + (namespace ? `/namespace/${namespace}` : '') + '/saml/sso';
};
export { getEntityId, getSSOUrl };