File size: 726 Bytes
3206347
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const adminSamlAuthProviderSerializer = (samlAuthProvider) => {
  return {
    id: samlAuthProvider.id,
    name: samlAuthProvider.name,
    certificate: samlAuthProvider.certificate,
    signatureAlgorithm: samlAuthProvider.signatureAlgorithm,
    issuer: samlAuthProvider.issuer,
    entryPoint: samlAuthProvider.entryPoint,
    firstnameAttributeName: samlAuthProvider.firstnameAttributeName,
    surnameAttributeName: samlAuthProvider.surnameAttributeName,
    emailAttributeName: samlAuthProvider.emailAttributeName,
    roleAttributeName: samlAuthProvider.roleAttributeName,
    active: samlAuthProvider.active,
    defaultRoleId: samlAuthProvider.defaultRoleId,
  };
};

export default adminSamlAuthProviderSerializer;