Skip to content

Commit

Permalink
Merge branch 'release/0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ADAS-antonio-calatayud committed Jan 27, 2021
2 parents a9966bc + 501cc48 commit aed7ed5
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 20 deletions.
6 changes: 3 additions & 3 deletions H2020.IPMDecisions.IDP.API/H2020.IPMDecisions.IDP.API.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>0.1.1.0</Version>
<AssemblyVersion>0.1.1.0</AssemblyVersion>
<FileVersion>0.1.1.0</FileVersion>
<Version>0.2.0.0</Version>
<AssemblyVersion>0.2.0.0</AssemblyVersion>
<FileVersion>0.2.0.0</FileVersion>
<Authors>ADAS Modelling and Informatics Team</Authors>
<Company>RSK ADAS Ltd</Company>
<Product>H2020 IPM Decisions Identity Provider Service</Product>
Expand Down
2 changes: 1 addition & 1 deletion H2020.IPMDecisions.IDP.API/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://0.0.0.0:5001;http://0.0.0.0:5000"
"applicationUrl": "https://0.0.0.0:5003;http://0.0.0.0:5002"
} ,
"H2020.IPMDecisions.IDP.API_Staging": {
"commandName": "Project",
Expand Down
10 changes: 8 additions & 2 deletions H2020.IPMDecisions.IDP.API/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,16 @@ public void Configure(
endpoints.MapControllers();
});

app.UseSwagger();
var swaggerBasePath = Configuration["MicroserviceInternalCommunication:IdentityProviderMicroservice"];

app.UseSwagger(c =>
{
c.RouteTemplate = swaggerBasePath+ "swagger/{documentName}/swagger.json";
});
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "H2020 IPM Decisions - Identity Provider API");
c.SwaggerEndpoint($"/{swaggerBasePath}swagger/v1/swagger.json", "H2020 IPM Decisions - Identity Provider API");
c.RoutePrefix = $"{swaggerBasePath}swagger";
});

applicationLifetime.ApplicationStopping.Register(OnShutdown);
Expand Down
3 changes: 2 additions & 1 deletion H2020.IPMDecisions.IDP.API/appsettingsTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
},
"MicroserviceInternalCommunication": {
"ApiGatewayAddress": "whereApiGatewayIsHosted/",
"EmailMicroservice": "eml/api/",
"EmailMicroservice": "api/eml/",
"UserProvisionMicroservice": "api/upr/",
"IdentityProviderMicroservice": "api/idp/",
"ContentTypeHeader": "application/vnd.h2020ipmdecisions.internal+json",
"SecurityTokenCustomHeader": "ipm-internal-auth",
"SecurityToken": "1234"
Expand Down
6 changes: 3 additions & 3 deletions H2020.IPMDecisions.IDP.BLL/H2020.IPMDecisions.IDP.BLL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</ItemGroup>
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>0.1.1.0</Version>
<AssemblyVersion>0.1.1.0</AssemblyVersion>
<FileVersion>0.1.1.0</FileVersion>
<Version>0.2.0.0</Version>
<AssemblyVersion>0.2.0.0</AssemblyVersion>
<FileVersion>0.2.0.0</FileVersion>
<Authors>ADAS Modelling and Informatics Team</Authors>
<Company>RSK ADAS Ltd</Company>
<Product>H2020 IPM Decisions Identity Provider Service</Product>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>0.1.1.0</Version>
<AssemblyVersion>0.1.1.0</AssemblyVersion>
<FileVersion>0.1.1.0</FileVersion>
<Version>0.2.0.0</Version>
<AssemblyVersion>0.2.0.0</AssemblyVersion>
<FileVersion>0.2.0.0</FileVersion>
<Authors>ADAS Modelling and Informatics Team</Authors>
<Company>RSK ADAS Ltd</Company>
<Product>H2020 IPM Decisions Identity Provider Service</Product>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>0.1.1.0</Version>
<AssemblyVersion>0.1.1.0</AssemblyVersion>
<FileVersion>0.1.1.0</FileVersion>
<Version>0.2.0.0</Version>
<AssemblyVersion>0.2.0.0</AssemblyVersion>
<FileVersion>0.2.0.0</FileVersion>
<Authors>ADAS Modelling and Informatics Team</Authors>
<Company>RSK ADAS Ltd</Company>
<Product>H2020 IPM Decisions Identity Provider Service</Product>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>0.1.0.0</Version>
<AssemblyVersion>0.1.0.0</AssemblyVersion>
<FileVersion>0.1.0.0</FileVersion>
<Version>0.2.0.0</Version>
<AssemblyVersion>0.2.0.0</AssemblyVersion>
<FileVersion>0.2.0.0</FileVersion>
<Authors>ADAS Modelling and Informatics Team</Authors>
<Company>RSK ADAS Ltd</Company>
<IsPackable>false</IsPackable>
Expand Down
2 changes: 1 addition & 1 deletion H2020.IPMDecisions.IDP.Tests/appsettings.Test.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"DisableStringReuse": true
},
"MicroserviceInternalCommunication": {
"ApiGatewayAddress": "http://localhost:5003/",
"ApiGatewayAddress": "http://localhost:5000/",
"EmailMicroservice": "api/eml/",
"UserProvisionMicroservice": "api/upr/",
"ContentTypeHeader": "application/vnd.h2020ipmdecisions.internal+json",
Expand Down

0 comments on commit aed7ed5

Please sign in to comment.