diff --git a/.gitignore b/.gitignore
index a8d0a12..6c59346 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
.idea/
.vs/
bin/
-obj/
\ No newline at end of file
+obj/
+appsettings.secrets.json
\ No newline at end of file
diff --git a/FarmMapsBlight/FarmMapsBlight.csproj b/FarmMapsBlight/FarmMapsBlight.csproj
index dc870a8..b24d8d7 100644
--- a/FarmMapsBlight/FarmMapsBlight.csproj
+++ b/FarmMapsBlight/FarmMapsBlight.csproj
@@ -9,10 +9,4 @@
-
-
- PreserveNewest
-
-
-
diff --git a/FarmMapsBlight/appsettings.json b/FarmMapsBlight/appsettings.json
deleted file mode 100644
index c5d440a..0000000
--- a/FarmMapsBlight/appsettings.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "Authority": "https://accounts.test.farmmaps.eu/",
- "Endpoint": "https://test.farmmaps.eu/",
- "BasePath": "api/v1",
- "DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
- "RedirectUri": "http://example.nl/api",
- "ClientId": "",
- "ClientSecret": "",
- "Scopes": [ "api" ]
-}
\ No newline at end of file
diff --git a/FarmmapsApi/FarmmapsApi.csproj b/FarmmapsApi/FarmmapsApi.csproj
index 46a26b6..20b6873 100644
--- a/FarmmapsApi/FarmmapsApi.csproj
+++ b/FarmmapsApi/FarmmapsApi.csproj
@@ -18,4 +18,8 @@
+
+
+
+
diff --git a/FarmmapsApi/FarmmapsProgram.cs b/FarmmapsApi/FarmmapsProgram.cs
index ea25201..5c3f3d7 100644
--- a/FarmmapsApi/FarmmapsProgram.cs
+++ b/FarmmapsApi/FarmmapsProgram.cs
@@ -20,6 +20,7 @@ namespace FarmmapsApi
{
IConfiguration config = new ConfigurationBuilder()
.AddJsonFile("appsettings.json", false, true)
+ .AddJsonFile("appsettings.secrets.json", false, true)
.Build();
var configuration = config.Get();
diff --git a/FarmmapsApiSamples.sln b/FarmmapsApiSamples.sln
index 42962b5..f7bf4b2 100644
--- a/FarmmapsApiSamples.sln
+++ b/FarmmapsApiSamples.sln
@@ -27,6 +27,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FarmmapsDataDownload", "Far
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FarmmapsBulkSatDownload", "FarmmapsBulkSatDownload\FarmmapsBulkSatDownload.csproj", "{772DBDCD-9FAA-40A7-8551-2C1620C4AB67}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Secrets", "Secrets\Secrets.csproj", "{C4EE5ECA-253A-4B71-9F67-D231AC4517D6}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -69,6 +71,10 @@ Global
{772DBDCD-9FAA-40A7-8551-2C1620C4AB67}.Debug|Any CPU.Build.0 = Debug|Any CPU
{772DBDCD-9FAA-40A7-8551-2C1620C4AB67}.Release|Any CPU.ActiveCfg = Release|Any CPU
{772DBDCD-9FAA-40A7-8551-2C1620C4AB67}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C4EE5ECA-253A-4B71-9F67-D231AC4517D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C4EE5ECA-253A-4B71-9F67-D231AC4517D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C4EE5ECA-253A-4B71-9F67-D231AC4517D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C4EE5ECA-253A-4B71-9F67-D231AC4517D6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/FarmmapsBulkSatDownload/FarmmapsBulkSatDownload.csproj b/FarmmapsBulkSatDownload/FarmmapsBulkSatDownload.csproj
index e3efb57..f8e8b08 100644
--- a/FarmmapsBulkSatDownload/FarmmapsBulkSatDownload.csproj
+++ b/FarmmapsBulkSatDownload/FarmmapsBulkSatDownload.csproj
@@ -10,9 +10,6 @@
-
- Always
-
Always
diff --git a/FarmmapsBulkSatDownload/appsettings.json b/FarmmapsBulkSatDownload/appsettings.json
deleted file mode 100644
index c5d440a..0000000
--- a/FarmmapsBulkSatDownload/appsettings.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "Authority": "https://accounts.test.farmmaps.eu/",
- "Endpoint": "https://test.farmmaps.eu/",
- "BasePath": "api/v1",
- "DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
- "RedirectUri": "http://example.nl/api",
- "ClientId": "",
- "ClientSecret": "",
- "Scopes": [ "api" ]
-}
\ No newline at end of file
diff --git a/FarmmapsDataDownload/FarmmapsDataDownload.csproj b/FarmmapsDataDownload/FarmmapsDataDownload.csproj
index 7f0e2c6..22b003c 100644
--- a/FarmmapsDataDownload/FarmmapsDataDownload.csproj
+++ b/FarmmapsDataDownload/FarmmapsDataDownload.csproj
@@ -6,9 +6,6 @@
-
- Always
-
Always
diff --git a/FarmmapsDataDownload/appsettings.json b/FarmmapsDataDownload/appsettings.json
deleted file mode 100644
index 924ba52..0000000
--- a/FarmmapsDataDownload/appsettings.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "Authority": "https://accounts.test.farmmaps.eu/",
- "Endpoint": "https://test.farmmaps.eu/",
- "BasePath": "api/v1",
- "DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
- "RedirectUri": "http://example.nl/api",
- "ClientId": "",
- "ClientSecret": "",
- "Scopes": [ "api" ]
-}
diff --git a/FarmmapsHaulmkilling/FarmmapsHaulmkilling.csproj b/FarmmapsHaulmkilling/FarmmapsHaulmkilling.csproj
index bd82357..d4c7f60 100644
--- a/FarmmapsHaulmkilling/FarmmapsHaulmkilling.csproj
+++ b/FarmmapsHaulmkilling/FarmmapsHaulmkilling.csproj
@@ -6,9 +6,6 @@
-
- Always
-
Always
diff --git a/FarmmapsHerbicide/FarmmapsHerbicide.csproj b/FarmmapsHerbicide/FarmmapsHerbicide.csproj
index 5e79ae2..ac5e7c3 100644
--- a/FarmmapsHerbicide/FarmmapsHerbicide.csproj
+++ b/FarmmapsHerbicide/FarmmapsHerbicide.csproj
@@ -6,9 +6,6 @@
-
- Always
-
Always
diff --git a/FarmmapsHerbicide/appsettings.json b/FarmmapsHerbicide/appsettings.json
deleted file mode 100644
index c5d440a..0000000
--- a/FarmmapsHerbicide/appsettings.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "Authority": "https://accounts.test.farmmaps.eu/",
- "Endpoint": "https://test.farmmaps.eu/",
- "BasePath": "api/v1",
- "DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
- "RedirectUri": "http://example.nl/api",
- "ClientId": "",
- "ClientSecret": "",
- "Scopes": [ "api" ]
-}
\ No newline at end of file
diff --git a/FarmmapsNbs/FarmmapsNbs.csproj b/FarmmapsNbs/FarmmapsNbs.csproj
index f43ac99..a057a73 100644
--- a/FarmmapsNbs/FarmmapsNbs.csproj
+++ b/FarmmapsNbs/FarmmapsNbs.csproj
@@ -6,9 +6,6 @@
-
- Always
-
Always
diff --git a/FarmmapsNbs/appsettings.json b/FarmmapsNbs/appsettings.json
deleted file mode 100644
index 7b11e9d..0000000
--- a/FarmmapsNbs/appsettings.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "Authority": "https://accounts.test.farmmaps.eu/",
- "Endpoint": "https://test.farmmaps.eu/",
- "BasePath": "api/v1",
- "DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
- "RedirectUri": "http://example.nl/api",
- "ClientId": "",
- "ClientSecret": "",
- "Scopes": [ "api" ]
-}
diff --git a/FarmmapsPoten/FarmmapsPoten.csproj b/FarmmapsPoten/FarmmapsPoten.csproj
index fd6dc18..70c6e88 100644
--- a/FarmmapsPoten/FarmmapsPoten.csproj
+++ b/FarmmapsPoten/FarmmapsPoten.csproj
@@ -6,9 +6,6 @@
-
- Always
-
Always
diff --git a/FarmmapsPoten/appsettings.json b/FarmmapsPoten/appsettings.json
deleted file mode 100644
index 924ba52..0000000
--- a/FarmmapsPoten/appsettings.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "Authority": "https://accounts.test.farmmaps.eu/",
- "Endpoint": "https://test.farmmaps.eu/",
- "BasePath": "api/v1",
- "DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
- "RedirectUri": "http://example.nl/api",
- "ClientId": "",
- "ClientSecret": "",
- "Scopes": [ "api" ]
-}
diff --git a/FarmmapsZonering/FarmmapsZonering.csproj b/FarmmapsZonering/FarmmapsZonering.csproj
index 9244d42..beb87d4 100644
--- a/FarmmapsZonering/FarmmapsZonering.csproj
+++ b/FarmmapsZonering/FarmmapsZonering.csproj
@@ -6,15 +6,9 @@
-
- Always
-
Always
-
- Always
-
PreserveNewest
diff --git a/FarmmapsZonering/appsettings.json b/FarmmapsZonering/appsettings.json
deleted file mode 100644
index c5d440a..0000000
--- a/FarmmapsZonering/appsettings.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "Authority": "https://accounts.test.farmmaps.eu/",
- "Endpoint": "https://test.farmmaps.eu/",
- "BasePath": "api/v1",
- "DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
- "RedirectUri": "http://example.nl/api",
- "ClientId": "",
- "ClientSecret": "",
- "Scopes": [ "api" ]
-}
\ No newline at end of file
diff --git a/README.MD b/README.MD
index 3eb0045..43ba6c7 100644
--- a/README.MD
+++ b/README.MD
@@ -1,6 +1,14 @@
##### NOT PRODUCTION READY CODE, JUST AN EXAMPLE
-Put your clientId and clientSecret in the appsettings.json.
+Put your clientId and clientSecret in a newly created appsettings.secrets.json file inside the root of the Secrets project.
+
+**appsettings.secrets.json**
+```
+{
+ "ClientId": "",
+ "ClientSecret": ""
+}
+```
* Isn't 100% complete.
* Needs proper testing of all public api methods.
diff --git a/Secrets/Secrets.csproj b/Secrets/Secrets.csproj
new file mode 100644
index 0000000..f12914f
--- /dev/null
+++ b/Secrets/Secrets.csproj
@@ -0,0 +1,18 @@
+
+
+
+ netstandard1.0
+
+
+
+
+
+ Always
+
+
+
+ Always
+
+
+
+
diff --git a/FarmmapsHaulmkilling/appsettings.json b/Secrets/appsettings.json
similarity index 87%
rename from FarmmapsHaulmkilling/appsettings.json
rename to Secrets/appsettings.json
index bbc63bb..1e2ea36 100644
--- a/FarmmapsHaulmkilling/appsettings.json
+++ b/Secrets/appsettings.json
@@ -4,7 +4,5 @@
"BasePath": "api/v1",
"DiscoveryEndpointUrl": "https://accounts.test.farmmaps.eu/.well-known/openid-configuration",
"RedirectUri": "http://example.nl/api",
- "ClientId": "",
- "ClientSecret": "",
"Scopes": ["api"]
}
\ No newline at end of file