last ...
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
using System.Linq;
|
||||
using xIds.Providers;
|
||||
using xIdentityHelper;
|
||||
using xCommons.Attributes;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using xIdentityModels.Constants;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using static IdentityServer4.IdentityServerConstants;
|
||||
|
||||
@@ -157,10 +159,12 @@ namespace xIds.Controllers
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
[RequireXPowered]
|
||||
[HttpGet("Test/HiApiKeyAccess")]
|
||||
// [Authorize(LocalApi.PolicyName)]
|
||||
[Authorize(Policy = XPolicies.ApiKeyAccess)]
|
||||
[Authorize(LocalApi.PolicyName)]
|
||||
[XApiKeyAccess(scopes: [XApiKeyScope.Read])]
|
||||
// [Authorize(Policy = XPolicies.ApiKeyAccess)]
|
||||
public ActionResult<string> HiApiKeyAccess()
|
||||
{
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user