feat: write endpoints to update SamlAuthProvidersRoleMappings
This commit is contained in:
@@ -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;
|
Reference in New Issue
Block a user