-
Notifications
You must be signed in to change notification settings - Fork 0
Ab#77142 #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ab#77142 #7
Changes from all commits
d9195c5
c5af4f9
f2d91a6
a9a47d5
8f6e61a
4675fd8
7aeaaf1
6da2f5b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| //Copyright 2023 Keyfactor | ||
| //Licensed under the Apache License, Version 2.0 (the "License"); | ||
| //you may not use this file except in compliance with the License. | ||
| //You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| //Unless required by applicable law or agreed to in writing, software | ||
| //distributed under the License is distributed on an "AS IS" BASIS, | ||
| //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| //See the License for the specific language governing permissions and | ||
| //limitations under the License. | ||
|
|
||
| using Newtonsoft.Json; | ||
| using System.Text.Json.Serialization; | ||
|
|
||
| namespace Keyfactor.Extensions.Orchestrator.Fortigate.Api | ||
| { | ||
| public class HttpsUsage | ||
| { | ||
| [JsonProperty("admin-server-cert")] | ||
| public string AdminServerCert { get; set; } | ||
| } | ||
|
|
||
| public class HttpUsageRequest | ||
| { | ||
| [JsonProperty("admin-server-cert")] | ||
| public OriginKey AdminServerCert { get; set; } | ||
| } | ||
|
|
||
| public class OriginKey | ||
| { | ||
| [JsonProperty("q_origin_key")] | ||
| public string QOriginKey { get; set; } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -29,6 +29,7 @@ | |||
| using System.Text; | ||||
| using System.Net.Http.Headers; | ||||
| using Microsoft.Extensions.Logging; | ||||
| using Org.BouncyCastle.Asn1.Ocsp; | ||||
|
||||
| using Org.BouncyCastle.Asn1.Ocsp; |
Check warning on line 49 in Fortigate/FortigateStore.cs
GitHub Actions / call-starter-workflow / call-dotnet-build-and-release-workflow / dotnet-build-and-release
The field 'FortigateStore.get_certificate_api' is assigned but its value is never used
Check warning on line 51 in Fortigate/FortigateStore.cs
GitHub Actions / call-starter-workflow / call-dotnet-build-and-release-workflow / dotnet-build-and-release
The field 'FortigateStore.update_certificate_api' is assigned but its value is never used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file uses both
Newtonsoft.Json(line 14) andSystem.Text.Json.Serialization(line 15) namespaces, but onlyNewtonsoft.Jsonattributes are actually used in the code. TheSystem.Text.Json.Serializationimport is unnecessary and should be removed to maintain consistency with other API classes in the codebase (which use only Newtonsoft.Json).