Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FIT-Connect-SDK - .NET
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
FIT-Connect-SDK - .NET
Commits
2bcadd88
Commit
2bcadd88
authored
2 years ago
by
Klaus Fischer
Browse files
Options
Downloads
Patches
Plain Diff
Removed old commented code
parent
92a0010f
No related branches found
No related tags found
1 merge request
!13
Feature/559 validate certificates
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
FitConnect/Encryption/CertificateHelper.cs
+0
-3
0 additions, 3 deletions
FitConnect/Encryption/CertificateHelper.cs
FitConnect/Models/FitConnectEnvironment.cs
+0
-20
0 additions, 20 deletions
FitConnect/Models/FitConnectEnvironment.cs
with
0 additions
and
23 deletions
FitConnect/Encryption/CertificateHelper.cs
+
0
−
3
View file @
2bcadd88
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
FitConnect/Models/FitConnectEnvironment.cs
+
0
−
20
View file @
2bcadd88
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)
// };
// }
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment