This commit is contained in:
2025-05-12 23:57:05 +08:00
parent 10a344f6d6
commit 4fa451be97
57 changed files with 344 additions and 106 deletions

View File

@@ -2,11 +2,11 @@
{
public class UserApiAuthorizeAttribute : AuthorizeAttribute
public class ApiAuthorizeAttribute : AuthorizeAttribute
{
public UserApiAuthorizeAttribute()
public ApiAuthorizeAttribute()
{
AuthenticationSchemes = AuthenticationScheme.UserApiScheme;
AuthenticationSchemes = AuthenticationScheme.ApiScheme;
}
}
}

View File

@@ -1,12 +0,0 @@
namespace Yes.Infrastructure.Authorizations.User
{
public class UserAuthorizeAttribute : AuthorizeAttribute
{
public UserAuthorizeAttribute()
{
AuthenticationSchemes = AuthenticationScheme.UserScheme;
}
}
}

View File

@@ -0,0 +1,12 @@
namespace Yes.Infrastructure.Authorizations.User
{
public class PageAuthorizeAttribute : AuthorizeAttribute
{
public PageAuthorizeAttribute()
{
AuthenticationSchemes = "admin";
}
}
}