Skip to content

Commit 37b0ba1

Browse files
author
Hayden Roszell
committed
Get CA bug fix and remove openapi gen metadata
1 parent 6ad47c0 commit 37b0ba1

File tree

463 files changed

+2795
-984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

463 files changed

+2795
-984
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ openapi-generator-cli.jar
2424
.idea/
2525
bruh
2626
test
27-
Keyfactor-v10-patched.swagger.yaml
27+
Keyfactor-v10-patched.swagger.yaml
28+
.openapi-generator
29+
.openapi-generator-ignore

.openapi-generator/templates/Java/gitignore.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ openapi-generator-cli.jar
2424
.idea/
2525
bruh
2626
test
27-
Keyfactor-v10-patched.swagger.yaml
27+
Keyfactor-v10-patched.swagger.yaml
28+
.openapi-generator
29+
.openapi-generator-ignore

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Keyfactor-v1
44
- API version: v1
5-
- Build date: 2022-10-27T12:22:19.679-07:00[America/Phoenix]
5+
- Build date: 2022-11-08T11:48:36.483-07:00[America/Phoenix]
66

77
This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance.
88

@@ -83,13 +83,19 @@ Please follow the [installation](#installation) instruction and execute the foll
8383
import com.keyfactor.command.client.ApiClient;
8484
import com.keyfactor.command.client.ApiException;
8585
import com.keyfactor.command.client.Configuration;
86+
import com.keyfactor.command.client.auth.*;
8687
import com.keyfactor.command.client.models.*;
8788
import com.keyfactor.command.client.api.AgentApi;
8889

8990
public class Example {
9091
public static void main(String[] args) {
9192
ApiClient defaultClient = Configuration.getDefaultApiClient();
9293
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
94+
95+
// Configure HTTP basic authorization: basicAuth
96+
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
97+
basicAuth.setUsername("YOUR USERNAME");
98+
basicAuth.setPassword("YOUR PASSWORD");
9399

94100
AgentApi apiInstance = new AgentApi(defaultClient);
95101
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
@@ -790,8 +796,11 @@ Class | Method | HTTP request | Description
790796

791797
## Documentation for Authorization
792798

793-
All endpoints do not require authorization.
794799
Authentication schemes defined for the API:
800+
### basicAuth
801+
802+
- **Type**: HTTP basic authentication
803+
795804

796805
## Recommendation
797806

api/openapi.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ info:
77
version: v1
88
servers:
99
- url: https://192.168.78.139/KeyfactorAPI
10+
security:
11+
- basicAuth: []
1012
paths:
1113
/Agents/{id}:
1214
get:
@@ -19850,10 +19852,9 @@ components:
1985019852
type: string
1985119853
AllowedEnrollmentTypes:
1985219854
enum:
19853-
- 0
1985419855
- 1
1985519856
- 2
19856-
- 4
19857+
- 3
1985719858
format: int32
1985819859
type: integer
1985919860
KeyRetention:
@@ -29636,4 +29637,8 @@ components:
2963629637
description: Arbitrary data to associate with the signal.
2963729638
type: object
2963829639
type: object
29640+
securitySchemes:
29641+
basicAuth:
29642+
scheme: basic
29643+
type: http
2963929644

docs/AgentApi.md

Lines changed: 56 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,19 @@ Approve a list of agents
2626
import com.keyfactor.command.client.ApiClient;
2727
import com.keyfactor.command.client.ApiException;
2828
import com.keyfactor.command.client.Configuration;
29+
import com.keyfactor.command.client.auth.*;
2930
import com.keyfactor.command.client.models.*;
3031
import com.keyfactor.command.client.api.AgentApi;
3132

3233
public class Example {
3334
public static void main(String[] args) {
3435
ApiClient defaultClient = Configuration.getDefaultApiClient();
3536
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
37+
38+
// Configure HTTP basic authorization: basicAuth
39+
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
40+
basicAuth.setUsername("YOUR USERNAME");
41+
basicAuth.setPassword("YOUR PASSWORD");
3642

3743
AgentApi apiInstance = new AgentApi(defaultClient);
3844
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
@@ -65,7 +71,7 @@ null (empty response body)
6571

6672
### Authorization
6773

68-
No authorization required
74+
[basicAuth](../README.md#basicAuth)
6975

7076
### HTTP request headers
7177

@@ -89,13 +95,19 @@ Disapprove a list of agents
8995
import com.keyfactor.command.client.ApiClient;
9096
import com.keyfactor.command.client.ApiException;
9197
import com.keyfactor.command.client.Configuration;
98+
import com.keyfactor.command.client.auth.*;
9299
import com.keyfactor.command.client.models.*;
93100
import com.keyfactor.command.client.api.AgentApi;
94101

95102
public class Example {
96103
public static void main(String[] args) {
97104
ApiClient defaultClient = Configuration.getDefaultApiClient();
98105
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
106+
107+
// Configure HTTP basic authorization: basicAuth
108+
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
109+
basicAuth.setUsername("YOUR USERNAME");
110+
basicAuth.setPassword("YOUR PASSWORD");
99111

100112
AgentApi apiInstance = new AgentApi(defaultClient);
101113
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
@@ -128,7 +140,7 @@ null (empty response body)
128140

129141
### Authorization
130142

131-
No authorization required
143+
[basicAuth](../README.md#basicAuth)
132144

133145
### HTTP request headers
134146

@@ -152,13 +164,19 @@ Schedules a job on the agent to retrieve log files
152164
import com.keyfactor.command.client.ApiClient;
153165
import com.keyfactor.command.client.ApiException;
154166
import com.keyfactor.command.client.Configuration;
167+
import com.keyfactor.command.client.auth.*;
155168
import com.keyfactor.command.client.models.*;
156169
import com.keyfactor.command.client.api.AgentApi;
157170

158171
public class Example {
159172
public static void main(String[] args) {
160173
ApiClient defaultClient = Configuration.getDefaultApiClient();
161174
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
175+
176+
// Configure HTTP basic authorization: basicAuth
177+
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
178+
basicAuth.setUsername("YOUR USERNAME");
179+
basicAuth.setPassword("YOUR PASSWORD");
162180

163181
AgentApi apiInstance = new AgentApi(defaultClient);
164182
UUID id = UUID.randomUUID(); // UUID | Guid Id of the agent to schedule the job for.
@@ -191,7 +209,7 @@ null (empty response body)
191209

192210
### Authorization
193211

194-
No authorization required
212+
[basicAuth](../README.md#basicAuth)
195213

196214
### HTTP request headers
197215

@@ -215,13 +233,19 @@ Returns details for a single agent, specified by ID
215233
import com.keyfactor.command.client.ApiClient;
216234
import com.keyfactor.command.client.ApiException;
217235
import com.keyfactor.command.client.Configuration;
236+
import com.keyfactor.command.client.auth.*;
218237
import com.keyfactor.command.client.models.*;
219238
import com.keyfactor.command.client.api.AgentApi;
220239

221240
public class Example {
222241
public static void main(String[] args) {
223242
ApiClient defaultClient = Configuration.getDefaultApiClient();
224243
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
244+
245+
// Configure HTTP basic authorization: basicAuth
246+
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
247+
basicAuth.setUsername("YOUR USERNAME");
248+
basicAuth.setPassword("YOUR PASSWORD");
225249

226250
AgentApi apiInstance = new AgentApi(defaultClient);
227251
UUID id = UUID.randomUUID(); // UUID | Agent Id to Search
@@ -255,7 +279,7 @@ public class Example {
255279

256280
### Authorization
257281

258-
No authorization required
282+
[basicAuth](../README.md#basicAuth)
259283

260284
### HTTP request headers
261285

@@ -279,13 +303,19 @@ Returns all agents according to the provided filter and output parameters
279303
import com.keyfactor.command.client.ApiClient;
280304
import com.keyfactor.command.client.ApiException;
281305
import com.keyfactor.command.client.Configuration;
306+
import com.keyfactor.command.client.auth.*;
282307
import com.keyfactor.command.client.models.*;
283308
import com.keyfactor.command.client.api.AgentApi;
284309

285310
public class Example {
286311
public static void main(String[] args) {
287312
ApiClient defaultClient = Configuration.getDefaultApiClient();
288313
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
314+
315+
// Configure HTTP basic authorization: basicAuth
316+
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
317+
basicAuth.setUsername("YOUR USERNAME");
318+
basicAuth.setPassword("YOUR PASSWORD");
289319

290320
AgentApi apiInstance = new AgentApi(defaultClient);
291321
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
@@ -327,7 +357,7 @@ public class Example {
327357

328358
### Authorization
329359

330-
No authorization required
360+
[basicAuth](../README.md#basicAuth)
331361

332362
### HTTP request headers
333363

@@ -351,13 +381,19 @@ Reset a list of agents
351381
import com.keyfactor.command.client.ApiClient;
352382
import com.keyfactor.command.client.ApiException;
353383
import com.keyfactor.command.client.Configuration;
384+
import com.keyfactor.command.client.auth.*;
354385
import com.keyfactor.command.client.models.*;
355386
import com.keyfactor.command.client.api.AgentApi;
356387

357388
public class Example {
358389
public static void main(String[] args) {
359390
ApiClient defaultClient = Configuration.getDefaultApiClient();
360391
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
392+
393+
// Configure HTTP basic authorization: basicAuth
394+
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
395+
basicAuth.setUsername("YOUR USERNAME");
396+
basicAuth.setPassword("YOUR PASSWORD");
361397

362398
AgentApi apiInstance = new AgentApi(defaultClient);
363399
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
@@ -390,7 +426,7 @@ null (empty response body)
390426

391427
### Authorization
392428

393-
No authorization required
429+
[basicAuth](../README.md#basicAuth)
394430

395431
### HTTP request headers
396432

@@ -414,13 +450,19 @@ Reset an agent to a new state
414450
import com.keyfactor.command.client.ApiClient;
415451
import com.keyfactor.command.client.ApiException;
416452
import com.keyfactor.command.client.Configuration;
453+
import com.keyfactor.command.client.auth.*;
417454
import com.keyfactor.command.client.models.*;
418455
import com.keyfactor.command.client.api.AgentApi;
419456

420457
public class Example {
421458
public static void main(String[] args) {
422459
ApiClient defaultClient = Configuration.getDefaultApiClient();
423460
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
461+
462+
// Configure HTTP basic authorization: basicAuth
463+
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
464+
basicAuth.setUsername("YOUR USERNAME");
465+
basicAuth.setPassword("YOUR PASSWORD");
424466

425467
AgentApi apiInstance = new AgentApi(defaultClient);
426468
UUID id = UUID.randomUUID(); // UUID | Guid Id of Agent to reset
@@ -453,7 +495,7 @@ null (empty response body)
453495

454496
### Authorization
455497

456-
No authorization required
498+
[basicAuth](../README.md#basicAuth)
457499

458500
### HTTP request headers
459501

@@ -477,13 +519,19 @@ Update the AuthCertificateReenrollment value for an agent to request or require
477519
import com.keyfactor.command.client.ApiClient;
478520
import com.keyfactor.command.client.ApiException;
479521
import com.keyfactor.command.client.Configuration;
522+
import com.keyfactor.command.client.auth.*;
480523
import com.keyfactor.command.client.models.*;
481524
import com.keyfactor.command.client.api.AgentApi;
482525

483526
public class Example {
484527
public static void main(String[] args) {
485528
ApiClient defaultClient = Configuration.getDefaultApiClient();
486529
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
530+
531+
// Configure HTTP basic authorization: basicAuth
532+
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
533+
basicAuth.setUsername("YOUR USERNAME");
534+
basicAuth.setPassword("YOUR PASSWORD");
487535

488536
AgentApi apiInstance = new AgentApi(defaultClient);
489537
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
@@ -517,7 +565,7 @@ public class Example {
517565

518566
### Authorization
519567

520-
No authorization required
568+
[basicAuth](../README.md#basicAuth)
521569

522570
### HTTP request headers
523571

0 commit comments

Comments
 (0)