mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-18 09:52:11 +08:00
Merge pull request #186 from meysamhadeli/develop
chore: Update identity server
This commit is contained in:
commit
900d24ef6e
@ -43,11 +43,11 @@ runs:
|
|||||||
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
docker build -t ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.5 -f "${{ github.workspace }}/${{ inputs.dockerfile-path }}" .
|
docker build -t ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.6 -f "${{ github.workspace }}/${{ inputs.dockerfile-path }}" .
|
||||||
|
|
||||||
- name: Publish Docker Image
|
- name: Publish Docker Image
|
||||||
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
docker push ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.5
|
docker push ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.6
|
||||||
|
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
"Port": 5672
|
"Port": 5672
|
||||||
},
|
},
|
||||||
"Jwt": {
|
"Jwt": {
|
||||||
"Authority": "http://myidentityserver.com",
|
"Authority": "http://booking-microservices.com/identity",
|
||||||
"Audience": "booking-api",
|
"Audience": "booking-api",
|
||||||
"RequireHttpsMetadata": false
|
"RequireHttpsMetadata": false
|
||||||
},
|
},
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
"ConnectionString": "Server=postgres;Port=5432;Database=flight;User Id=postgres;Password=postgres;Include Error Detail=true"
|
"ConnectionString": "Server=postgres;Port=5432;Database=flight;User Id=postgres;Password=postgres;Include Error Detail=true"
|
||||||
},
|
},
|
||||||
"Jwt": {
|
"Jwt": {
|
||||||
"Authority": "http://myidentityserver.com",
|
"Authority": "http://booking-microservices.com/identity",
|
||||||
"Audience": "flight-api",
|
"Audience": "flight-api",
|
||||||
"RequireHttpsMetadata": false
|
"RequireHttpsMetadata": false
|
||||||
},
|
},
|
||||||
|
|||||||
@ -7,11 +7,11 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Identity\Identity.csproj"/>
|
<ProjectReference Include="..\Identity\Identity.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<_ContentIncludedByDefault Remove="keys\is-signing-key-C01EF7C986B61650360AFA59291E65BC.json"/>
|
<_ContentIncludedByDefault Remove="keys\is-signing-key-C01EF7C986B61650360AFA59291E65BC.json" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@ -25,7 +25,6 @@ public static class IdentityServerExtensions
|
|||||||
|
|
||||||
var identityServerBuilder = services.AddIdentityServer(options =>
|
var identityServerBuilder = services.AddIdentityServer(options =>
|
||||||
{
|
{
|
||||||
options.IssuerUri = "http://myidentityserver.com";
|
|
||||||
options.Events.RaiseErrorEvents = true;
|
options.Events.RaiseErrorEvents = true;
|
||||||
options.Events.RaiseInformationEvents = true;
|
options.Events.RaiseInformationEvents = true;
|
||||||
options.Events.RaiseFailureEvents = true;
|
options.Events.RaiseFailureEvents = true;
|
||||||
@ -39,7 +38,7 @@ public static class IdentityServerExtensions
|
|||||||
.AddResourceOwnerValidator<UserValidator>();
|
.AddResourceOwnerValidator<UserValidator>();
|
||||||
|
|
||||||
//ref: https://documentation.openiddict.com/configuration/encryption-and-signing-credentials.html
|
//ref: https://documentation.openiddict.com/configuration/encryption-and-signing-credentials.html
|
||||||
identityServerBuilder.AddDeveloperSigningCredential();
|
// identityServerBuilder.AddDeveloperSigningCredential();
|
||||||
|
|
||||||
return services;
|
return services;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -115,11 +115,11 @@ public static class InfrastructureExtensions
|
|||||||
|
|
||||||
app.MapGet("/", x => x.Response.WriteAsync(appOptions.Name));
|
app.MapGet("/", x => x.Response.WriteAsync(appOptions.Name));
|
||||||
|
|
||||||
app.Use((httpContext, next) =>
|
// app.Use((httpContext, next) =>
|
||||||
{
|
// {
|
||||||
httpContext.Request.Scheme = "https";
|
// httpContext.Request.Scheme = "https";
|
||||||
return next();
|
// return next();
|
||||||
});
|
// });
|
||||||
|
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
"ConnectionString": "Server=postgres;Port=5432;Database=persist_message;User Id=postgres;Password=postgres;Include Error Detail=true"
|
"ConnectionString": "Server=postgres;Port=5432;Database=persist_message;User Id=postgres;Password=postgres;Include Error Detail=true"
|
||||||
},
|
},
|
||||||
"Jwt": {
|
"Jwt": {
|
||||||
"Authority": "http://myidentityserver.com",
|
"Authority": "http://booking-microservices.com/identity",
|
||||||
"Audience": "passenger-api",
|
"Audience": "passenger-api",
|
||||||
"RequireHttpsMetadata": false
|
"RequireHttpsMetadata": false
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user