2024-01-20 23:20:37 +00:00
|
|
|
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 };
|