Skip to content

Commit 349d96f

Browse files
committed
Generated api with local version of openapi generator
1 parent 698abd1 commit 349d96f

File tree

162 files changed

+13649
-5144
lines changed

Some content is hidden

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

162 files changed

+13649
-5144
lines changed

KeycloakApi/.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ docs/Api/DefaultApi.md
1616
docs/Api/GroupsApi.md
1717
docs/Api/IdentityProvidersApi.md
1818
docs/Api/KeyApi.md
19+
docs/Api/OrganizationsApi.md
1920
docs/Api/ProtocolMappersApi.md
2021
docs/Api/RealmsAdminApi.md
2122
docs/Api/RoleMapperApi.md
@@ -37,6 +38,7 @@ docs/Model/AuthenticationFlowRepresentation.md
3738
docs/Model/AuthenticatorConfigInfoRepresentation.md
3839
docs/Model/AuthenticatorConfigRepresentation.md
3940
docs/Model/Authorization.md
41+
docs/Model/BruteForceStrategy.md
4042
docs/Model/CertificateRepresentation.md
4143
docs/Model/ClaimRepresentation.md
4244
docs/Model/ClientInitialAccessCreatePresentation.md
@@ -143,6 +145,7 @@ lib/Api/DefaultApi.php
143145
lib/Api/GroupsApi.php
144146
lib/Api/IdentityProvidersApi.php
145147
lib/Api/KeyApi.php
148+
lib/Api/OrganizationsApi.php
146149
lib/Api/ProtocolMappersApi.php
147150
lib/Api/RealmsAdminApi.php
148151
lib/Api/RoleMapperApi.php
@@ -167,6 +170,7 @@ lib/Model/AuthenticationFlowRepresentation.php
167170
lib/Model/AuthenticatorConfigInfoRepresentation.php
168171
lib/Model/AuthenticatorConfigRepresentation.php
169172
lib/Model/Authorization.php
173+
lib/Model/BruteForceStrategy.php
170174
lib/Model/CertificateRepresentation.php
171175
lib/Model/ClaimRepresentation.php
172176
lib/Model/ClientInitialAccessCreatePresentation.php
@@ -262,3 +266,5 @@ lib/Model/UserRepresentation.php
262266
lib/Model/UserSessionRepresentation.php
263267
lib/ObjectSerializer.php
264268
phpunit.xml.dist
269+
test/Api/OrganizationsApiTest.php
270+
test/Model/BruteForceStrategyTest.php
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.9.0-SNAPSHOT
1+
7.10.0-SNAPSHOT

KeycloakApi/README.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,15 @@ require_once(__DIR__ . '/vendor/autoload.php');
4949

5050

5151

52+
// Configure Bearer authorization: BearerAuth
53+
$config = WebMI\KeycloakApiClient\KeycloakApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
54+
5255

5356
$apiInstance = new WebMI\KeycloakApiClient\KeycloakApi\Api\AttackDetectionApi(
5457
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
5558
// This is optional, `GuzzleHttp\Client` will be used as default.
56-
new GuzzleHttp\Client()
59+
new GuzzleHttp\Client(),
60+
$config
5761
);
5862
$realm = 'realm_example'; // string | realm name (not id!)
5963

@@ -243,6 +247,24 @@ Class | Method | HTTP request | Description
243247
*IdentityProvidersApi* | [**adminRealmsRealmIdentityProviderInstancesPost**](docs/Api/IdentityProvidersApi.md#adminrealmsrealmidentityproviderinstancespost) | **POST** /admin/realms/{realm}/identity-provider/instances | Create a new identity provider
244248
*IdentityProvidersApi* | [**adminRealmsRealmIdentityProviderProvidersProviderIdGet**](docs/Api/IdentityProvidersApi.md#adminrealmsrealmidentityproviderprovidersprovideridget) | **GET** /admin/realms/{realm}/identity-provider/providers/{provider_id} | Get the identity provider factory for that provider id
245249
*KeyApi* | [**adminRealmsRealmKeysGet**](docs/Api/KeyApi.md#adminrealmsrealmkeysget) | **GET** /admin/realms/{realm}/keys |
250+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsGet**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsget) | **GET** /admin/realms/{realm}/organizations | Returns a paginated list of organizations filtered according to the specified parameters
251+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdDelete**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsiddelete) | **DELETE** /admin/realms/{realm}/organizations/{id} | Deletes the organization
252+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdGet**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsidget) | **GET** /admin/realms/{realm}/organizations/{id} | Returns the organization representation
253+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdIdentityProvidersAliasDelete**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsididentityprovidersaliasdelete) | **DELETE** /admin/realms/{realm}/organizations/{id}/identity-providers/{alias} | Removes the identity provider with the specified alias from the organization
254+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdIdentityProvidersAliasGet**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsididentityprovidersaliasget) | **GET** /admin/realms/{realm}/organizations/{id}/identity-providers/{alias} | Returns the identity provider associated with the organization that has the specified alias
255+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdIdentityProvidersGet**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsididentityprovidersget) | **GET** /admin/realms/{realm}/organizations/{id}/identity-providers | Returns all identity providers associated with the organization
256+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdIdentityProvidersPost**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsididentityproviderspost) | **POST** /admin/realms/{realm}/organizations/{id}/identity-providers | Adds the identity provider with the specified id to the organization
257+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdMembersCountGet**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsidmemberscountget) | **GET** /admin/realms/{realm}/organizations/{id}/members/count | Returns number of members in the organization.
258+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdMembersGet**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsidmembersget) | **GET** /admin/realms/{realm}/organizations/{id}/members | Returns a paginated list of organization members filtered according to the specified parameters
259+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdMembersIdDelete**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsidmembersiddelete) | **DELETE** /admin/realms/{realm}/organizations/{id}/members/{id} | Removes the user with the specified id from the organization
260+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdMembersIdGet**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsidmembersidget) | **GET** /admin/realms/{realm}/organizations/{id}/members/{id} | Returns the member of the organization with the specified id
261+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdMembersIdOrganizationsGet**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsidmembersidorganizationsget) | **GET** /admin/realms/{realm}/organizations/{id}/members/{id}/organizations | Returns the organizations associated with the user that has the specified id
262+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdMembersInviteExistingUserPost**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsidmembersinviteexistinguserpost) | **POST** /admin/realms/{realm}/organizations/{id}/members/invite-existing-user | Invites an existing user to the organization, using the specified user id
263+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdMembersInviteUserPost**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsidmembersinviteuserpost) | **POST** /admin/realms/{realm}/organizations/{id}/members/invite-user | Invites an existing user or sends a registration link to a new user, based on the provided e-mail address.
264+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdMembersPost**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsidmemberspost) | **POST** /admin/realms/{realm}/organizations/{id}/members | Adds the user with the specified id as a member of the organization
265+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsIdPut**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsidput) | **PUT** /admin/realms/{realm}/organizations/{id} | Updates the organization
266+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsMembersIdOrganizationsGet**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationsmembersidorganizationsget) | **GET** /admin/realms/{realm}/organizations/members/{id}/organizations | Returns the organizations associated with the user that has the specified id
267+
*OrganizationsApi* | [**adminRealmsRealmOrganizationsPost**](docs/Api/OrganizationsApi.md#adminrealmsrealmorganizationspost) | **POST** /admin/realms/{realm}/organizations | Creates a new organization
246268
*ProtocolMappersApi* | [**adminRealmsRealmClientScopesClientScopeIdProtocolMappersAddModelsPost**](docs/Api/ProtocolMappersApi.md#adminrealmsrealmclientscopesclientscopeidprotocolmappersaddmodelspost) | **POST** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/add-models | Create multiple mappers
247269
*ProtocolMappersApi* | [**adminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsGet**](docs/Api/ProtocolMappersApi.md#adminrealmsrealmclientscopesclientscopeidprotocolmappersmodelsget) | **GET** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models | Get mappers
248270
*ProtocolMappersApi* | [**adminRealmsRealmClientScopesClientScopeIdProtocolMappersModelsIdDelete**](docs/Api/ProtocolMappersApi.md#adminrealmsrealmclientscopesclientscopeidprotocolmappersmodelsiddelete) | **DELETE** /admin/realms/{realm}/client-scopes/{client-scope-id}/protocol-mappers/models/{id} | Delete the mapper
@@ -443,6 +465,7 @@ Class | Method | HTTP request | Description
443465
- [AuthenticatorConfigInfoRepresentation](docs/Model/AuthenticatorConfigInfoRepresentation.md)
444466
- [AuthenticatorConfigRepresentation](docs/Model/AuthenticatorConfigRepresentation.md)
445467
- [Authorization](docs/Model/Authorization.md)
468+
- [BruteForceStrategy](docs/Model/BruteForceStrategy.md)
446469
- [CertificateRepresentation](docs/Model/CertificateRepresentation.md)
447470
- [ClaimRepresentation](docs/Model/ClaimRepresentation.md)
448471
- [ClientInitialAccessCreatePresentation](docs/Model/ClientInitialAccessCreatePresentation.md)
@@ -537,7 +560,11 @@ Class | Method | HTTP request | Description
537560
- [UserSessionRepresentation](docs/Model/UserSessionRepresentation.md)
538561

539562
## Authorization
540-
Endpoints do not require authorization.
563+
564+
Authentication schemes defined for the API:
565+
### BearerAuth
566+
567+
- **Type**: Bearer authentication
541568

542569
## Tests
543570

@@ -557,5 +584,5 @@ vendor/bin/phpunit
557584
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
558585

559586
- API version: `1.0`
560-
- Generator version: `7.9.0-SNAPSHOT`
587+
- Generator version: `7.10.0-SNAPSHOT`
561588
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

KeycloakApi/docs/Api/AttackDetectionApi.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ Clear any user login failures for all users This can release temporary disabled
2424
require_once(__DIR__ . '/vendor/autoload.php');
2525

2626

27+
// Configure Bearer authorization: BearerAuth
28+
$config = WebMI\KeycloakApiClient\KeycloakApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
29+
2730

2831
$apiInstance = new WebMI\KeycloakApiClient\KeycloakApi\Api\AttackDetectionApi(
2932
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
3033
// This is optional, `GuzzleHttp\Client` will be used as default.
31-
new GuzzleHttp\Client()
34+
new GuzzleHttp\Client(),
35+
$config
3236
);
3337
$realm = 'realm_example'; // string | realm name (not id!)
3438

@@ -51,7 +55,7 @@ void (empty response body)
5155

5256
### Authorization
5357

54-
No authorization required
58+
[BearerAuth](../../README.md#BearerAuth)
5559

5660
### HTTP request headers
5761

@@ -77,11 +81,15 @@ Clear any user login failures for the user This can release temporary disabled u
7781
require_once(__DIR__ . '/vendor/autoload.php');
7882

7983

84+
// Configure Bearer authorization: BearerAuth
85+
$config = WebMI\KeycloakApiClient\KeycloakApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
86+
8087

8188
$apiInstance = new WebMI\KeycloakApiClient\KeycloakApi\Api\AttackDetectionApi(
8289
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
8390
// This is optional, `GuzzleHttp\Client` will be used as default.
84-
new GuzzleHttp\Client()
91+
new GuzzleHttp\Client(),
92+
$config
8593
);
8694
$realm = 'realm_example'; // string | realm name (not id!)
8795
$user_id = 'user_id_example'; // string
@@ -106,7 +114,7 @@ void (empty response body)
106114

107115
### Authorization
108116

109-
No authorization required
117+
[BearerAuth](../../README.md#BearerAuth)
110118

111119
### HTTP request headers
112120

@@ -132,11 +140,15 @@ Get status of a username in brute force detection
132140
require_once(__DIR__ . '/vendor/autoload.php');
133141

134142

143+
// Configure Bearer authorization: BearerAuth
144+
$config = WebMI\KeycloakApiClient\KeycloakApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
145+
135146

136147
$apiInstance = new WebMI\KeycloakApiClient\KeycloakApi\Api\AttackDetectionApi(
137148
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
138149
// This is optional, `GuzzleHttp\Client` will be used as default.
139-
new GuzzleHttp\Client()
150+
new GuzzleHttp\Client(),
151+
$config
140152
);
141153
$realm = 'realm_example'; // string | realm name (not id!)
142154
$user_id = 'user_id_example'; // string
@@ -162,7 +174,7 @@ try {
162174

163175
### Authorization
164176

165-
No authorization required
177+
[BearerAuth](../../README.md#BearerAuth)
166178

167179
### HTTP request headers
168180

0 commit comments

Comments
 (0)