Skip to content
Snippets Groups Projects
Commit f9a1c72b authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

Merge branch 'add-attribute-mapping-to-GetLoginProofResult' into 'main'

Add attribute mapping in GetLoginProofResult

See merge request !22
parents 00cbcd98 204c4f7c
No related branches found
No related tags found
1 merge request!22Add attribute mapping in GetLoginProofResult
Pipeline #53038 passed with stage
in 37 seconds
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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment