Update to OpenIddict3.0

This commit is contained in:
nicolas.dorier
2019-10-08 15:21:30 +09:00
parent d56a5ad86e
commit 3c9b58916b
29 changed files with 220 additions and 337 deletions

View File

@@ -7,10 +7,7 @@ using BTCPayServer.Services.Stores;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using OpenIddict.Validation;
#if !NETCOREAPP21
using OpenIddictValidationDefaults = Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectDefaults;
#endif
using OpenIddict.Validation.AspNetCore;
namespace BTCPayServer.Controllers.RestApi
{
@@ -111,7 +108,6 @@ namespace BTCPayServer.Controllers.RestApi
[Authorize(Policy = RestAPIPolicies.CanViewProfile,
AuthenticationSchemes = AuthenticationSchemes.OpenId)]
[HttpGet(nameof(ScopeCanViewProfile))]
public bool ScopeCanViewProfile() { return true; }