Interface IActivityGroupGrantStore
- Namespace
- Excalibur.A3.Authorization
- Assembly
- Excalibur.A3.Abstractions.dll
Activity-group grant operations that span the grant store.
public interface IActivityGroupGrantStore
Remarks
Follows the Microsoft ASP.NET Core Identity IUserRoleStore<TUser> pattern:
a bridging ISP sub-interface for operations that span grant and activity-group stores.
Access via GetService(Type) or GetService(Type).
Replaces IActivityGroupGrantService from Excalibur.A3.
Methods
DeleteActivityGroupGrantsByUserIdAsync(string, string, CancellationToken)
Deletes all activity-group grants for a user.
Task<int> DeleteActivityGroupGrantsByUserIdAsync(string userId, string grantType, CancellationToken cancellationToken)
Parameters
userIdstringThe user/subject identifier.
grantTypestringThe grant type.
cancellationTokenCancellationTokenCancellation token.
Returns
DeleteAllActivityGroupGrantsAsync(string, CancellationToken)
Deletes all activity-group grants.
Task<int> DeleteAllActivityGroupGrantsAsync(string grantType, CancellationToken cancellationToken)
Parameters
grantTypestringThe grant type.
cancellationTokenCancellationTokenCancellation token.
Returns
GetDistinctActivityGroupGrantUserIdsAsync(string, CancellationToken)
Returns distinct user IDs with activity-group grants.
Task<IReadOnlyList<string>> GetDistinctActivityGroupGrantUserIdsAsync(string grantType, CancellationToken cancellationToken)
Parameters
grantTypestringThe grant type.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<string>>
Distinct user identifiers.
InsertActivityGroupGrantAsync(string, string, string, string, string, DateTimeOffset?, string, CancellationToken)
Inserts an activity-group grant.
Task<int> InsertActivityGroupGrantAsync(string userId, string fullName, string tenantId, string grantType, string qualifier, DateTimeOffset? expiresOn, string grantedBy, CancellationToken cancellationToken)
Parameters
userIdstringThe user/subject identifier.
fullNamestringOptional display name.
tenantIdstringThe tenant identifier. Required; must be non-empty.
grantTypestringThe grant type.
qualifierstringThe qualifier/scope.
expiresOnDateTimeOffset?Optional expiration timestamp (UTC).
grantedBystringThe actor who grants.
cancellationTokenCancellationTokenCancellation token.