Skip to content
Snippets Groups Projects

Add attribute mapping in GetLoginProofResult

Merged Yordan Kinkov requested to merge add-attribute-mapping-to-GetLoginProofResult into main
1 file
+ 49
1
Compare changes
  • Side-by-side
  • Inline
package example.GetLoginProofResult
_ = ocm.getLoginProofResult(input.requestId)
claims := ocm.getLoginProofResult(input.requestId)
name = getName(claims)
given_name = getGivenName(claims)
family_name = getFamilyName(claims)
middle_name = getMiddleName(claims)
preferred_username = getPreferredUsername(claims)
gender = getGender(claims)
birthdate = getBirthdate(claims)
email = getEmail(claims)
email_verified = getEmailVerified(claims)
sub = getSub(claims)
iss = getIss(claims)
auth_time = getAuthTime(claims)
getName(c) = x {
x = c.first_name
}
getGivenName(c) = x {
x = c.first_name
}
getFamilyName(c) = x {
x = c.last_name
}
getMiddleName(c) = x {
x = c.EmpMiddleName
}
getPreferredUsername(c) = x {
x = c.EmpPreferredUsername
}
getGender(c) = x {
x = c.EmpGender
}
getBirthdate(c) = x {
x = c.EmpBirthdate
}
getEmail(c) = x {
x = c.email
}
getEmailVerified(c) = x {
x = c.email_verified
}
getSub(c) = x {
x = c.sub
}
getIss(c) = x {
x = c.iss
}
getAuthTime(c) = x {
x = c.auth_time
}
Loading