115 lines
4.1 KiB
C#
115 lines
4.1 KiB
C#
// using xModels.Dtos;
|
|
// using System.Threading;
|
|
// using xIdentityModels.Dtos;
|
|
// using System.Threading.Tasks;
|
|
// using xIdentityModels.Models;
|
|
// using System.Collections.Generic;
|
|
// using xIdentityService.Models;
|
|
|
|
// namespace xIdentityService.Interfaces
|
|
// {
|
|
// public interface IXAuthorizationProvider
|
|
// {
|
|
// //
|
|
// #region Scope ...
|
|
// Task<XQueryResult<XScopeDefinitionDto>> QueryScopesAsync(
|
|
// XQuery query,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<XScopeDefinitionDto> GetScopeAsync(
|
|
// string name,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<XScopeDefinitionDto> AddScopeAsync(
|
|
// XScopeDefinitionDto item,
|
|
// XUserClaimsInfoDto userInfo,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<XScopeDefinitionDto> UpdateScopeAsync(
|
|
// string name,
|
|
// XScopeDefinitionDto item,
|
|
// XUserClaimsInfoDto userInfo,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<bool> RemoveScopeAsync(
|
|
// string name,
|
|
// XUserClaimsInfoDto userInfo,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// #endregion
|
|
|
|
// //
|
|
// #region Role ...
|
|
// Task<IEnumerable<XRoleDefinitionDto>> GetRolesAsync(
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<XRoleDefinitionDto> GetRoleAsync(
|
|
// string name,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<XRoleDefinitionDto> AddRoleAsync(
|
|
// XRoleDefinitionDto item,
|
|
// XUserClaimsInfoDto userInfo,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<XRoleDefinitionDto> UpdateRoleAsync(
|
|
// string name,
|
|
// XRoleDefinitionDto item,
|
|
// XUserClaimsInfoDto userInfo,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<bool> RemoveRoleAsync(
|
|
// string name,
|
|
// XUserClaimsInfoDto userInfo,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<int> CountUsersInRoleAsync(
|
|
// string name,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// #endregion
|
|
|
|
// //
|
|
// #region Policy ...
|
|
// Task<XQueryResult<XPolicyDefinitionDto>> QueryPoliciesAsync(
|
|
// XQuery query,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<XPolicyDefinitionDto> GetPolicyAsync(
|
|
// string name,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<XPolicyDefinitionDto> AddPolicyAsync(
|
|
// XPolicyDefinitionDto item,
|
|
// XUserClaimsInfoDto userInfo,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<XPolicyDefinitionDto> UpdatePolicyAsync(
|
|
// string name,
|
|
// XPolicyDefinitionDto item,
|
|
// XUserClaimsInfoDto userInfo,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<bool> RemovePolicyAsync(
|
|
// string name,
|
|
// XUserClaimsInfoDto userInfo,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<XPolicyEvaluationResultDto> EvaluatePolicyAsync(
|
|
// string name,
|
|
// XUserClaimsInfoDto target,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// Task<XEffectiveAuthorizationDto> GetEffectiveAuthorizationAsync(
|
|
// XUserClaimsInfoDto target,
|
|
// CancellationToken cancellationToken = default
|
|
// );
|
|
// #endregion
|
|
|
|
// //
|
|
// #region Utilities ...
|
|
// Task SyncAllAsync(CancellationToken cancellationToken = default);
|
|
// Task InvalidateAsync(string policyName = null);
|
|
// #endregion
|
|
// }
|
|
// } |