DefaultUserClaimCreator class
namespace: Serenity.Services assembly: Serenity.Net.Core
Default implementation of IUserClaimCreator that builds a ClaimsPrincipal from a user definition retrieved via IUserRetrieveService.
public class DefaultUserClaimCreator : IUserClaimCreator
| parameter |
description |
| userRetriever |
The service used to retrieve user definitions by username. |
Public Members
Protected Members
| name |
description |
| virtual AddClaims(…) |
Adds claims to the specified identity for the given user definition. |
Exceptions
| exception |
condition |
| ArgumentNullException |
userRetriever is null. |
Creates a new instance of the DefaultUserClaimCreator class.
See Also