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