general support to add scopes for bearer auth too (#1984)

* general support to add scopes for bearer auth too
implemented authorize workflow in aspnet core too

* petstore update

* fix missing )

* multi roles fix

* null pointer error prevention

* null point exception fixes

* null pointer fixes

* npe fix

* solved line break issue
This commit is contained in:
MBcom
2019-06-04 17:03:15 +02:00
committed by William Cheng
parent dc3543981e
commit dcf3f420f9
6 changed files with 41 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using Org.OpenAPITools.Attributes;
using Org.OpenAPITools.Models;
using Microsoft.AspNetCore.Authorization;
namespace Org.OpenAPITools.Controllers
{

View File

@@ -17,6 +17,7 @@ using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using Org.OpenAPITools.Attributes;
using Org.OpenAPITools.Models;
using Microsoft.AspNetCore.Authorization;
namespace Org.OpenAPITools.Controllers
{

View File

@@ -17,6 +17,7 @@ using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using Org.OpenAPITools.Attributes;
using Org.OpenAPITools.Models;
using Microsoft.AspNetCore.Authorization;
namespace Org.OpenAPITools.Controllers
{