1
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
{
|
||||
|
||||
|
||||
public class UserApiAuthorizeAttribute : AuthorizeAttribute
|
||||
public class ApiAuthorizeAttribute : AuthorizeAttribute
|
||||
{
|
||||
public UserApiAuthorizeAttribute()
|
||||
public ApiAuthorizeAttribute()
|
||||
{
|
||||
AuthenticationSchemes = AuthenticationScheme.UserApiScheme;
|
||||
AuthenticationSchemes = AuthenticationScheme.ApiScheme;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
namespace Yes.Infrastructure.Authorizations.User
|
||||
{
|
||||
|
||||
|
||||
public class UserAuthorizeAttribute : AuthorizeAttribute
|
||||
{
|
||||
public UserAuthorizeAttribute()
|
||||
{
|
||||
AuthenticationSchemes = AuthenticationScheme.UserScheme;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace Yes.Infrastructure.Authorizations.User
|
||||
{
|
||||
|
||||
|
||||
public class PageAuthorizeAttribute : AuthorizeAttribute
|
||||
{
|
||||
public PageAuthorizeAttribute()
|
||||
{
|
||||
AuthenticationSchemes = "admin";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user