Skip to content
Snippets Groups Projects
Commit 2bcadd88 authored by Klaus Fischer's avatar Klaus Fischer
Browse files

Removed old commented code

parent 92a0010f
No related branches found
No related tags found
1 merge request!13Feature/559 validate certificates
...@@ -24,9 +24,6 @@ public class CertificateHelper { ...@@ -24,9 +24,6 @@ public class CertificateHelper {
X509Certificate2[]? rootCertificate = null, X509Certificate2[]? rootCertificate = null,
X509Certificate2[]? extras = null, X509Certificate2[]? extras = null,
LogLevel logLevel = LogLevel.Warning) { LogLevel logLevel = LogLevel.Warning) {
// Working notes
// https://git.fitko.de/fit-connect/planning/-/issues/142
// https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.x509certificates.x509chain.build?view=net-5.0
var certificateChain = new X509Chain(); var certificateChain = new X509Chain();
if (extras != null) if (extras != null)
......
namespace FitConnect.Models; namespace FitConnect.Models;
public class FitConnectEnvironment { public class FitConnectEnvironment {
// List of Domains
// https://wiki.fit-connect.fitko.dev/de/Betrieb/Dokumentation/Domains
public static readonly FitConnectEnvironment Develop = new( public static readonly FitConnectEnvironment Develop = new(
"https://auth-dev.fit-connect.fitko.dev/token", "https://auth-dev.fit-connect.fitko.dev/token",
new[] { "https://submission-api-dev.fit-connect.fitko.dev" }, new[] { "https://submission-api-dev.fit-connect.fitko.dev" },
...@@ -75,21 +72,4 @@ public class FitConnectEnvironment { ...@@ -75,21 +72,4 @@ public class FitConnectEnvironment {
public string RoutingUrl { get; } public string RoutingUrl { get; }
public bool VerifiedKeysAreMandatory { get; private init; } = true; public bool VerifiedKeysAreMandatory { get; private init; } = true;
/// <summary>
/// Creates the endpoints for the given environment.
/// </summary>
/// <param name="fitConnectEnvironment">Environment to get endpoints for</param>
/// <returns></returns>
/// <exception cref="ArgumentException">Not all environments are ready to use</exception>
// public static FitConnectEnvironment Create(FitConnectEnvironment fitConnectEnvironment) {
// return fitConnectEnvironment switch {
// FitConnectEnvironment.Development => DevEnvironment,
// FitConnectEnvironment.Testing => throw new ArgumentException(
// "Not approved for online testing"),
// FitConnectEnvironment.Production => throw new ArgumentException("NOT PRODUCTION READY"),
// _ => throw new ArgumentOutOfRangeException(nameof(fitConnectEnvironment),
// fitConnectEnvironment, null)
// };
// }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment