Browse Source
Merge pull request #22650 from abpframework/TransformAbpClaims
Update obsolete attribute message for UseAbpClaimsMap method
pull/22660/head
liangshiwei
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/Builder/AbpApplicationBuilderExtensions.cs
-
framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/Security/Claims/AbpClaimsMapMiddleware.cs
|
|
|
@ -115,7 +115,7 @@ public static class AbpApplicationBuilderExtensions |
|
|
|
return app.UseMiddleware<AbpExceptionHandlingMiddleware>(); |
|
|
|
} |
|
|
|
|
|
|
|
[Obsolete("Replace with AbpClaimsTransformation")] |
|
|
|
[Obsolete("Use the TransformAbpClaims extension method from IServiceCollection instead.")] |
|
|
|
public static IApplicationBuilder UseAbpClaimsMap(this IApplicationBuilder app) |
|
|
|
{ |
|
|
|
return app.UseMiddleware<AbpClaimsMapMiddleware>(); |
|
|
|
|
|
|
|
@ -11,7 +11,7 @@ using Volo.Abp.Security.Claims; |
|
|
|
|
|
|
|
namespace Volo.Abp.AspNetCore.Security.Claims; |
|
|
|
|
|
|
|
[Obsolete("Replace with AbpClaimsTransformation")] |
|
|
|
[Obsolete("Use the TransformAbpClaims extension method from IServiceCollection instead.")] |
|
|
|
public class AbpClaimsMapMiddleware : AbpMiddlewareBase, ITransientDependency |
|
|
|
{ |
|
|
|
public async override Task InvokeAsync(HttpContext context, RequestDelegate next) |
|
|
|
|