last ...
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using xIds.Interfaces;
|
||||
using xCommons.Providers;
|
||||
using xCommons.Attributes;
|
||||
using xIds.Controllers.Base;
|
||||
using xCommons.Configurations;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using xIdentityService.Interfaces;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace xIds.Controllers
|
||||
{
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[RequireXPowered]
|
||||
public partial class AuthorizationController : XIBaseController
|
||||
{
|
||||
private readonly IXRoleProvider roleProvider;
|
||||
private readonly IXScopeProvider scopeProvider;
|
||||
private readonly IXPolicyProvider policyProvider;
|
||||
|
||||
public AuthorizationController(
|
||||
IXRoleProvider roleProvider,
|
||||
IXScopeProvider scopeProvider,
|
||||
IXPolicyProvider policyProvider,
|
||||
IXIdentityManager identityManager,
|
||||
XAppConfiguration appConfiguration,
|
||||
XValidationProvider validationProvider,
|
||||
ILogger<AuthorizationController> logger
|
||||
) : base(logger, appConfiguration, identityManager, validationProvider)
|
||||
{
|
||||
//
|
||||
this.roleProvider = roleProvider;
|
||||
this.scopeProvider = scopeProvider;
|
||||
this.policyProvider = policyProvider;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user