mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-28 16:52:47 +08:00
chore: Update kubernetes configs
This commit is contained in:
parent
20795825a3
commit
b5d98699c1
@ -15,7 +15,7 @@ spec:
|
|||||||
app: flight
|
app: flight
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: meysamh66/booking-microservices-flight:v1.5.9
|
- image: meysamh66/booking-microservices-flight:v1.6.1
|
||||||
name: flight
|
name: flight
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
@ -39,7 +39,7 @@ spec:
|
|||||||
- name: "MongoOptions__DatabaseName"
|
- name: "MongoOptions__DatabaseName"
|
||||||
value: "flight-db"
|
value: "flight-db"
|
||||||
- name: "Jwt__Authority"
|
- name: "Jwt__Authority"
|
||||||
value: "http://127.0.0.1:13872"
|
value: "http://127.0.0.1:2521"
|
||||||
- name: "Jwt__Audience"
|
- name: "Jwt__Audience"
|
||||||
value: "flight-api"
|
value: "flight-api"
|
||||||
- name: "Jwt__RequireHttpsMetadata"
|
- name: "Jwt__RequireHttpsMetadata"
|
||||||
|
|||||||
@ -15,7 +15,7 @@ spec:
|
|||||||
app: identity
|
app: identity
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: meysamh66/booking-microservices-identity:v1.5.9
|
- image: meysamh66/booking-microservices-identity:v1.6.1
|
||||||
name: identity
|
name: identity
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
|||||||
@ -5,6 +5,8 @@ using Microsoft.Extensions.DependencyInjection;
|
|||||||
|
|
||||||
namespace BuildingBlocks.Jwt;
|
namespace BuildingBlocks.Jwt;
|
||||||
|
|
||||||
|
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
|
||||||
|
|
||||||
public static class JwtExtensions
|
public static class JwtExtensions
|
||||||
{
|
{
|
||||||
public static IServiceCollection AddJwt(this IServiceCollection services)
|
public static IServiceCollection AddJwt(this IServiceCollection services)
|
||||||
@ -17,6 +19,7 @@ public static class JwtExtensions
|
|||||||
options.Authority = jwtOptions.Authority;
|
options.Authority = jwtOptions.Authority;
|
||||||
options.TokenValidationParameters.ValidateAudience = false;
|
options.TokenValidationParameters.ValidateAudience = false;
|
||||||
options.RequireHttpsMetadata = jwtOptions.RequireHttpsMetadata;
|
options.RequireHttpsMetadata = jwtOptions.RequireHttpsMetadata;
|
||||||
|
options.Configuration = new OpenIdConnectConfiguration();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(jwtOptions.Audience))
|
if (!string.IsNullOrEmpty(jwtOptions.Audience))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user