ClaimsProvider procedures are used to perform custom actions on claim values.
A procedure of this type has the following structure:
1 2 3 4
function result(claimsProviderContext) { //Return a map of claim names with their values, e.g. return { claimName: 'claimValue' } }
The result function takes a single argument: the Context object.
result
Implementation of a claims provider.
A map of claim names with their values.
claimsProviderContext
First input argument to a claims-provider function. It contains the following attributes
claimsProviderContext.
request
attributeDataSource
webServiceClient
accountManager
bucket
requestedClaimAttributes
scopeValues
userAuthenticationAttributes
client
describe