forked from FarmMaps/FarmMapsApiClient
Update appsettings, included the three environments test, acceptance and production. + update the NBS sample code to the newest flow (backwards compatible
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard1.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard1.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="appsettings.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Remove="appsettings.json" />
|
||||
<Content Include="appsettings.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Remove="appsettings.secrets.json" />
|
||||
<Content Include="appsettings.secrets.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
</Project>
|
@@ -1,8 +1,25 @@
|
||||
{
|
||||
"Authority": "https://accounts.test.farmmaps.eu/",
|
||||
"Endpoint": "https://test.farmmaps.eu/",
|
||||
"BasePath": "api/v1",
|
||||
"DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
|
||||
//There are three farmmaps environments, uncomment the environemnt you want to use with this sample client
|
||||
|
||||
////test environment
|
||||
//"Authority": "https://accounts.test.farmmaps.eu/",
|
||||
//"Endpoint": "https://test.farmmaps.eu/",
|
||||
//"BasePath": "api/v1",
|
||||
//"DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
|
||||
|
||||
////acceptance environment
|
||||
//"Authority": "https://accounts.acc.farmmaps.eu/",
|
||||
//"Endpoint": "https://acc.farmmaps.eu/",
|
||||
//"BasePath": "api/v1",
|
||||
//"DiscoveryEndpointUrl": "https://accounts.acc.farmmaps.eu/.well-known/openid-configuration",
|
||||
|
||||
//production environment
|
||||
"authority": "https://accounts.farmmaps.eu/",
|
||||
"endpoint": "https://farmmaps.eu/",
|
||||
"basepath": "api/v1",
|
||||
"discoveryendpointurl": "https://accounts.farmmaps.eu/.well-known/openid-configuration",
|
||||
|
||||
//overige info
|
||||
"RedirectUri": "http://example.nl/api",
|
||||
"Scopes": ["api"]
|
||||
"Scopes": [ "api" ]
|
||||
}
|
Reference in New Issue
Block a user