feat: write endpoints to update SamlAuthProvidersRoleMappings

This commit is contained in:
Ali BARIN
2024-09-02 15:29:16 +00:00
parent 53ce327516
commit 062199d0e3
6 changed files with 287 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
const createRoleMappingsMock = async (roleMappings) => {
const data = roleMappings.map((roleMapping) => {
return {
id: roleMapping.id,
samlAuthProviderId: roleMapping.samlAuthProviderId,
roleId: roleMapping.roleId,
remoteRoleName: roleMapping.remoteRoleName,
};
});
return {
data: data,
meta: {
count: data.length,
currentPage: null,
isArray: true,
totalPages: null,
type: 'SamlAuthProvidersRoleMapping',
},
};
};
export default createRoleMappingsMock;