Browse Source
Merge pull request #1969 from abpframework/maliming/patch-2
Move UseAuthorization after UseIdentityServer.
pull/1974/head
Halil İbrahim Kalkan
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
5 additions and
5 deletions
-
samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.HttpApi.Host/BookStoreHttpApiHostModule.cs
-
samples/BookStore-Modular/application/src/Acme.BookStore.Web/BookStoreWebModule.cs
-
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.IdentityServer/BookManagementIdentityServerModule.cs
-
samples/BookStore/src/Acme.BookStore.Web/BookStoreWebModule.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.HostWithIds/MyProjectNameHttpApiHostModule.cs
|
|
|
@ -154,7 +154,6 @@ namespace Acme.BookStore |
|
|
|
app.UseRouting(); |
|
|
|
app.UseCors(DefaultCorsPolicyName); |
|
|
|
app.UseAuthentication(); |
|
|
|
app.UseAuthorization(); |
|
|
|
app.UseJwtTokenMiddleware(); |
|
|
|
|
|
|
|
if (MultiTenancyConsts.IsEnabled) |
|
|
|
@ -163,6 +162,7 @@ namespace Acme.BookStore |
|
|
|
} |
|
|
|
|
|
|
|
app.UseIdentityServer(); |
|
|
|
app.UseAuthorization(); |
|
|
|
app.UseAbpRequestLocalization(); |
|
|
|
|
|
|
|
app.UseSwagger(); |
|
|
|
|
|
|
|
@ -195,7 +195,6 @@ namespace Acme.BookStore.Web |
|
|
|
app.UseVirtualFiles(); |
|
|
|
app.UseRouting(); |
|
|
|
app.UseAuthentication(); |
|
|
|
app.UseAuthorization(); |
|
|
|
app.UseJwtTokenMiddleware(); |
|
|
|
|
|
|
|
if (MultiTenancyConsts.IsEnabled) |
|
|
|
@ -204,6 +203,7 @@ namespace Acme.BookStore.Web |
|
|
|
} |
|
|
|
|
|
|
|
app.UseIdentityServer(); |
|
|
|
app.UseAuthorization(); |
|
|
|
app.UseAbpRequestLocalization(); |
|
|
|
|
|
|
|
app.UseSwagger(); |
|
|
|
|
|
|
|
@ -140,13 +140,13 @@ namespace Acme.BookStore.BookManagement |
|
|
|
app.UseVirtualFiles(); |
|
|
|
app.UseRouting(); |
|
|
|
app.UseAuthentication(); |
|
|
|
app.UseAuthorization(); |
|
|
|
app.UseJwtTokenMiddleware(); |
|
|
|
if (MultiTenancyConsts.IsEnabled) |
|
|
|
{ |
|
|
|
app.UseMultiTenancy(); |
|
|
|
} |
|
|
|
app.UseIdentityServer(); |
|
|
|
app.UseAuthorization(); |
|
|
|
app.UseAbpRequestLocalization(); |
|
|
|
app.UseSwagger(); |
|
|
|
app.UseSwaggerUI(options => |
|
|
|
|
|
|
|
@ -188,7 +188,6 @@ namespace Acme.BookStore.Web |
|
|
|
app.UseRouting(); |
|
|
|
|
|
|
|
app.UseAuthentication(); |
|
|
|
app.UseAuthorization(); |
|
|
|
app.UseJwtTokenMiddleware(); |
|
|
|
|
|
|
|
if (MultiTenancyConsts.IsEnabled) |
|
|
|
@ -197,6 +196,7 @@ namespace Acme.BookStore.Web |
|
|
|
} |
|
|
|
|
|
|
|
app.UseIdentityServer(); |
|
|
|
app.UseAuthorization(); |
|
|
|
app.UseAbpRequestLocalization(); |
|
|
|
app.UseSwagger(); |
|
|
|
app.UseSwaggerUI(options => |
|
|
|
|
|
|
|
@ -154,7 +154,6 @@ namespace MyCompanyName.MyProjectName |
|
|
|
app.UseRouting(); |
|
|
|
app.UseCors(DefaultCorsPolicyName); |
|
|
|
app.UseAuthentication(); |
|
|
|
app.UseAuthorization(); |
|
|
|
app.UseJwtTokenMiddleware(); |
|
|
|
|
|
|
|
if (MultiTenancyConsts.IsEnabled) |
|
|
|
@ -163,6 +162,7 @@ namespace MyCompanyName.MyProjectName |
|
|
|
} |
|
|
|
|
|
|
|
app.UseIdentityServer(); |
|
|
|
app.UseAuthorization(); |
|
|
|
app.UseAbpRequestLocalization(); |
|
|
|
|
|
|
|
app.UseSwagger(); |
|
|
|
|