Click or drag to resize

AdoIdentityProviderAddClaim Method

Adds a claim to the specified user account

Namespace: SanteDB.Persistence.Data.Services
Assembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntax
public void AddClaim(
	string userName,
	IClaim claim,
	IPrincipal principal,
	TimeSpan? expiry = null
)

Parameters

userName  String
The user for which the claim is to be persisted
claim  IClaim
The claim which is to be persisted
principal  IPrincipal
The principal which is adding the claim (the authority under which the claim is being added)
expiry  NullableTimeSpan  (Optional)
The expiration time for the claim

Implements

IIdentityProviderServiceAddClaim(String, IClaim, IPrincipal, NullableTimeSpan)
See Also