Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Update API Client
Browse files Browse the repository at this point in the history
#### What's New
---

##### `PUT` /core/transactional/applications/
  • Loading branch information
authentik-automation[bot] committed Sep 17, 2023
1 parent 764d3c8 commit 24a4356
Show file tree
Hide file tree
Showing 14 changed files with 759 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ docs/LoginSource.md
docs/ManagedApi.md
docs/Metadata.md
docs/ModelEnum.md
docs/ModelRequest.md
docs/NameIdPolicyEnum.md
docs/NotConfiguredActionEnum.md
docs/Notification.md
Expand Down Expand Up @@ -388,6 +389,7 @@ docs/PropertyMappingTestResult.md
docs/PropertymappingsApi.md
docs/Provider.md
docs/ProviderEnum.md
docs/ProviderModelEnum.md
docs/ProviderRequest.md
docs/ProviderTypeEnum.md
docs/ProvidersApi.md
Expand Down Expand Up @@ -455,6 +457,8 @@ docs/TokenModel.md
docs/TokenRequest.md
docs/TokenSetKeyRequest.md
docs/TokenView.md
docs/TransactionApplicationRequest.md
docs/TransactionApplicationResponse.md
docs/TypeCreate.md
docs/UiThemeEnum.md
docs/UsedBy.md
Expand Down Expand Up @@ -700,6 +704,7 @@ src/main/kotlin/io/goauthentik/api/models/LoginMetrics.kt
src/main/kotlin/io/goauthentik/api/models/LoginSource.kt
src/main/kotlin/io/goauthentik/api/models/Metadata.kt
src/main/kotlin/io/goauthentik/api/models/ModelEnum.kt
src/main/kotlin/io/goauthentik/api/models/ModelRequest.kt
src/main/kotlin/io/goauthentik/api/models/NameIdPolicyEnum.kt
src/main/kotlin/io/goauthentik/api/models/NotConfiguredActionEnum.kt
src/main/kotlin/io/goauthentik/api/models/Notification.kt
Expand Down Expand Up @@ -914,6 +919,7 @@ src/main/kotlin/io/goauthentik/api/models/PropertyMappingPreview.kt
src/main/kotlin/io/goauthentik/api/models/PropertyMappingTestResult.kt
src/main/kotlin/io/goauthentik/api/models/Provider.kt
src/main/kotlin/io/goauthentik/api/models/ProviderEnum.kt
src/main/kotlin/io/goauthentik/api/models/ProviderModelEnum.kt
src/main/kotlin/io/goauthentik/api/models/ProviderRequest.kt
src/main/kotlin/io/goauthentik/api/models/ProviderTypeEnum.kt
src/main/kotlin/io/goauthentik/api/models/ProxyMode.kt
Expand Down Expand Up @@ -976,6 +982,8 @@ src/main/kotlin/io/goauthentik/api/models/TokenModel.kt
src/main/kotlin/io/goauthentik/api/models/TokenRequest.kt
src/main/kotlin/io/goauthentik/api/models/TokenSetKeyRequest.kt
src/main/kotlin/io/goauthentik/api/models/TokenView.kt
src/main/kotlin/io/goauthentik/api/models/TransactionApplicationRequest.kt
src/main/kotlin/io/goauthentik/api/models/TransactionApplicationResponse.kt
src/main/kotlin/io/goauthentik/api/models/TypeCreate.kt
src/main/kotlin/io/goauthentik/api/models/UiThemeEnum.kt
src/main/kotlin/io/goauthentik/api/models/UsedBy.kt
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ Class | Method | HTTP request | Description
*CoreApi* | [**coreTokensUpdate**](docs/CoreApi.md#coretokensupdate) | **PUT** /core/tokens/{identifier}/ |
*CoreApi* | [**coreTokensUsedByList**](docs/CoreApi.md#coretokensusedbylist) | **GET** /core/tokens/{identifier}/used_by/ |
*CoreApi* | [**coreTokensViewKeyRetrieve**](docs/CoreApi.md#coretokensviewkeyretrieve) | **GET** /core/tokens/{identifier}/view_key/ |
*CoreApi* | [**coreTransactionalApplicationsUpdate**](docs/CoreApi.md#coretransactionalapplicationsupdate) | **PUT** /core/transactional/applications/ |
*CoreApi* | [**coreUserConsentDestroy**](docs/CoreApi.md#coreuserconsentdestroy) | **DELETE** /core/user_consent/{id}/ |
*CoreApi* | [**coreUserConsentList**](docs/CoreApi.md#coreuserconsentlist) | **GET** /core/user_consent/ |
*CoreApi* | [**coreUserConsentRetrieve**](docs/CoreApi.md#coreuserconsentretrieve) | **GET** /core/user_consent/{id}/ |
Expand Down Expand Up @@ -838,6 +839,7 @@ Class | Method | HTTP request | Description
- [LoginSource](docs/LoginSource.md)
- [Metadata](docs/Metadata.md)
- [ModelEnum](docs/ModelEnum.md)
- [ModelRequest](docs/ModelRequest.md)
- [NameIdPolicyEnum](docs/NameIdPolicyEnum.md)
- [NotConfiguredActionEnum](docs/NotConfiguredActionEnum.md)
- [Notification](docs/Notification.md)
Expand Down Expand Up @@ -1052,6 +1054,7 @@ Class | Method | HTTP request | Description
- [PropertyMappingTestResult](docs/PropertyMappingTestResult.md)
- [Provider](docs/Provider.md)
- [ProviderEnum](docs/ProviderEnum.md)
- [ProviderModelEnum](docs/ProviderModelEnum.md)
- [ProviderRequest](docs/ProviderRequest.md)
- [ProviderTypeEnum](docs/ProviderTypeEnum.md)
- [ProxyMode](docs/ProxyMode.md)
Expand Down Expand Up @@ -1114,6 +1117,8 @@ Class | Method | HTTP request | Description
- [TokenRequest](docs/TokenRequest.md)
- [TokenSetKeyRequest](docs/TokenSetKeyRequest.md)
- [TokenView](docs/TokenView.md)
- [TransactionApplicationRequest](docs/TransactionApplicationRequest.md)
- [TransactionApplicationResponse](docs/TransactionApplicationResponse.md)
- [TypeCreate](docs/TypeCreate.md)
- [UiThemeEnum](docs/UiThemeEnum.md)
- [UsedBy](docs/UsedBy.md)
Expand Down
51 changes: 51 additions & 0 deletions docs/CoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Method | HTTP request | Description
[**coreTokensUpdate**](CoreApi.md#coreTokensUpdate) | **PUT** /core/tokens/{identifier}/ |
[**coreTokensUsedByList**](CoreApi.md#coreTokensUsedByList) | **GET** /core/tokens/{identifier}/used_by/ |
[**coreTokensViewKeyRetrieve**](CoreApi.md#coreTokensViewKeyRetrieve) | **GET** /core/tokens/{identifier}/view_key/ |
[**coreTransactionalApplicationsUpdate**](CoreApi.md#coreTransactionalApplicationsUpdate) | **PUT** /core/transactional/applications/ |
[**coreUserConsentDestroy**](CoreApi.md#coreUserConsentDestroy) | **DELETE** /core/user_consent/{id}/ |
[**coreUserConsentList**](CoreApi.md#coreUserConsentList) | **GET** /core/user_consent/ |
[**coreUserConsentRetrieve**](CoreApi.md#coreUserConsentRetrieve) | **GET** /core/user_consent/{id}/ |
Expand Down Expand Up @@ -2235,6 +2236,56 @@ Configure authentik:
- **Content-Type**: Not defined
- **Accept**: application/json

<a name="coreTransactionalApplicationsUpdate"></a>
# **coreTransactionalApplicationsUpdate**
> TransactionApplicationResponse coreTransactionalApplicationsUpdate(transactionApplicationRequest)


Convert data into a blueprint, validate it and apply it

### Example
```kotlin
// Import classes:
//import io.goauthentik.api.infrastructure.*
//import io.goauthentik.api.models.*

val apiInstance = CoreApi()
val transactionApplicationRequest : TransactionApplicationRequest = // TransactionApplicationRequest |
try {
val result : TransactionApplicationResponse = apiInstance.coreTransactionalApplicationsUpdate(transactionApplicationRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling CoreApi#coreTransactionalApplicationsUpdate")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CoreApi#coreTransactionalApplicationsUpdate")
e.printStackTrace()
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**transactionApplicationRequest** | [**TransactionApplicationRequest**](TransactionApplicationRequest.md)| |

### Return type

[**TransactionApplicationResponse**](TransactionApplicationResponse.md)

### Authorization


Configure authentik:
ApiClient.apiKey["Authorization"] = ""
ApiClient.apiKeyPrefix["Authorization"] = ""

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

<a name="coreUserConsentDestroy"></a>
# **coreUserConsentDestroy**
> coreUserConsentDestroy(id)
Expand Down
63 changes: 63 additions & 0 deletions docs/ModelRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@

# ModelRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **kotlin.String** | |
**authorizationFlow** | [**java.util.UUID**](java.util.UUID.md) | Flow used when authorizing this provider. |
**externalHost** | [**java.net.URI**](java.net.URI.md) | |
**acsUrl** | [**java.net.URI**](java.net.URI.md) | |
**url** | **kotlin.String** | Base URL to SCIM requests, usually ends in /v2 |
**token** | **kotlin.String** | Authentication token |
**authenticationFlow** | [**java.util.UUID**](java.util.UUID.md) | Flow used for authentication when the associated application is accessed by an un-authenticated user. | [optional]
**propertyMappings** | [**kotlin.collections.List&lt;java.util.UUID&gt;**](java.util.UUID.md) | | [optional]
**baseDn** | **kotlin.String** | DN under which objects are accessible. | [optional]
**searchGroup** | [**java.util.UUID**](java.util.UUID.md) | Users in this group can do search queries. If not set, every user can execute search queries. | [optional]
**certificate** | [**java.util.UUID**](java.util.UUID.md) | | [optional]
**tlsServerName** | **kotlin.String** | | [optional]
**uidStartNumber** | **kotlin.Int** | The start for uidNumbers, this number is added to the user.pk to make sure that the numbers aren&#39;t too low for POSIX users. Default is 2000 to ensure that we don&#39;t collide with local users uidNumber | [optional]
**gidStartNumber** | **kotlin.Int** | The start for gidNumbers, this number is added to a number generated from the group.pk to make sure that the numbers aren&#39;t too low for POSIX groups. Default is 4000 to ensure that we don&#39;t collide with local groups or users primary groups gidNumber | [optional]
**searchMode** | [**LDAPAPIAccessMode**](LDAPAPIAccessMode.md) | | [optional]
**bindMode** | [**LDAPAPIAccessMode**](LDAPAPIAccessMode.md) | | [optional]
**mfaSupport** | **kotlin.Boolean** | When enabled, code-based multi-factor authentication can be used by appending a semicolon and the TOTP code to the password. This should only be enabled if all users that will bind to this provider have a TOTP device configured, as otherwise a password may incorrectly be rejected if it contains a semicolon. | [optional]
**clientType** | [**ClientTypeEnum**](ClientTypeEnum.md) | Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable * &#x60;confidential&#x60; - Confidential * &#x60;public&#x60; - Public | [optional]
**clientId** | **kotlin.String** | | [optional]
**clientSecret** | **kotlin.String** | | [optional]
**accessCodeValidity** | **kotlin.String** | Access codes not valid on or after current time + this value (Format: hours&#x3D;1;minutes&#x3D;2;seconds&#x3D;3). | [optional]
**accessTokenValidity** | **kotlin.String** | Tokens not valid on or after current time + this value (Format: hours&#x3D;1;minutes&#x3D;2;seconds&#x3D;3). | [optional]
**refreshTokenValidity** | **kotlin.String** | Tokens not valid on or after current time + this value (Format: hours&#x3D;1;minutes&#x3D;2;seconds&#x3D;3). | [optional]
**includeClaimsInIdToken** | **kotlin.Boolean** | Include User claims from scopes in the id_token, for applications that don&#39;t access the userinfo endpoint. | [optional]
**signingKey** | [**java.util.UUID**](java.util.UUID.md) | Key used to sign the tokens. Only required when JWT Algorithm is set to RS256. | [optional]
**redirectUris** | **kotlin.String** | Enter each URI on a new line. | [optional]
**subMode** | [**SubModeEnum**](SubModeEnum.md) | Configure what data should be used as unique User Identifier. For most cases, the default should be fine. * &#x60;hashed_user_id&#x60; - Based on the Hashed User ID * &#x60;user_id&#x60; - Based on user ID * &#x60;user_uuid&#x60; - Based on user UUID * &#x60;user_username&#x60; - Based on the username * &#x60;user_email&#x60; - Based on the User&#39;s Email. This is recommended over the UPN method. * &#x60;user_upn&#x60; - Based on the User&#39;s UPN, only works if user has a &#39;upn&#39; attribute set. Use this method only if you have different UPN and Mail domains. | [optional]
**issuerMode** | [**IssuerModeEnum**](IssuerModeEnum.md) | Configure how the issuer field of the ID Token should be filled. * &#x60;global&#x60; - Same identifier is used for all providers * &#x60;per_provider&#x60; - Each provider has a different issuer, based on the application slug. | [optional]
**jwksSources** | [**kotlin.collections.List&lt;java.util.UUID&gt;**](java.util.UUID.md) | | [optional]
**internalHost** | [**java.net.URI**](java.net.URI.md) | | [optional]
**internalHostSslValidation** | **kotlin.Boolean** | Validate SSL Certificates of upstream servers | [optional]
**skipPathRegex** | **kotlin.String** | Regular expressions for which authentication is not required. Each new line is interpreted as a new Regular Expression. | [optional]
**basicAuthEnabled** | **kotlin.Boolean** | Set a custom HTTP-Basic Authentication header based on values from authentik. | [optional]
**basicAuthPasswordAttribute** | **kotlin.String** | User/Group Attribute used for the password part of the HTTP-Basic Header. | [optional]
**basicAuthUserAttribute** | **kotlin.String** | User/Group Attribute used for the user part of the HTTP-Basic Header. If not set, the user&#39;s Email address is used. | [optional]
**mode** | [**ProxyMode**](ProxyMode.md) | Enable support for forwardAuth in traefik and nginx auth_request. Exclusive with internal_host. * &#x60;proxy&#x60; - Proxy * &#x60;forward_single&#x60; - Forward Single * &#x60;forward_domain&#x60; - Forward Domain | [optional]
**interceptHeaderAuth** | **kotlin.Boolean** | When enabled, this provider will intercept the authorization header and authenticate requests based on its value. | [optional]
**cookieDomain** | **kotlin.String** | | [optional]
**clientNetworks** | **kotlin.String** | List of CIDRs (comma-separated) that clients can connect from. A more specific CIDR will match before a looser one. Clients connecting from a non-specified CIDR will be dropped. | [optional]
**sharedSecret** | **kotlin.String** | Shared secret between clients and server to hash packets. | [optional]
**audience** | **kotlin.String** | Value of the audience restriction field of the assertion. When left empty, no audience restriction will be added. | [optional]
**issuer** | **kotlin.String** | Also known as EntityID | [optional]
**assertionValidNotBefore** | **kotlin.String** | Assertion valid not before current time + this value (Format: hours&#x3D;-1;minutes&#x3D;-2;seconds&#x3D;-3). | [optional]
**assertionValidNotOnOrAfter** | **kotlin.String** | Assertion not valid on or after current time + this value (Format: hours&#x3D;1;minutes&#x3D;2;seconds&#x3D;3). | [optional]
**sessionValidNotOnOrAfter** | **kotlin.String** | Session not valid on or after current time + this value (Format: hours&#x3D;1;minutes&#x3D;2;seconds&#x3D;3). | [optional]
**nameIdMapping** | [**java.util.UUID**](java.util.UUID.md) | Configure how the NameID value will be created. When left empty, the NameIDPolicy of the incoming request will be considered | [optional]
**digestAlgorithm** | [**DigestAlgorithmEnum**](DigestAlgorithmEnum.md) | | [optional]
**signatureAlgorithm** | [**SignatureAlgorithmEnum**](SignatureAlgorithmEnum.md) | | [optional]
**signingKp** | [**java.util.UUID**](java.util.UUID.md) | Keypair used to sign outgoing Responses going to the Service Provider. | [optional]
**verificationKp** | [**java.util.UUID**](java.util.UUID.md) | When selected, incoming assertion&#39;s Signatures will be validated against this certificate. To allow unsigned Requests, leave on default. | [optional]
**spBinding** | [**SpBindingEnum**](SpBindingEnum.md) | This determines how authentik sends the response back to the Service Provider. * &#x60;redirect&#x60; - Redirect * &#x60;post&#x60; - Post | [optional]
**propertyMappingsGroup** | [**kotlin.collections.List&lt;java.util.UUID&gt;**](java.util.UUID.md) | Property mappings used for group creation/updating. | [optional]
**excludeUsersServiceAccount** | **kotlin.Boolean** | | [optional]
**filterGroup** | [**java.util.UUID**](java.util.UUID.md) | | [optional]



22 changes: 22 additions & 0 deletions docs/ProviderModelEnum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

# ProviderModelEnum

## Enum


* `ldapPeriodLdapprovider` (value: `"authentik_providers_ldap.ldapprovider"`)

* `oauth2PeriodOauth2provider` (value: `"authentik_providers_oauth2.oauth2provider"`)

* `proxyPeriodProxyprovider` (value: `"authentik_providers_proxy.proxyprovider"`)

* `radiusPeriodRadiusprovider` (value: `"authentik_providers_radius.radiusprovider"`)

* `samlPeriodSamlprovider` (value: `"authentik_providers_saml.samlprovider"`)

* `scimPeriodScimprovider` (value: `"authentik_providers_scim.scimprovider"`)

* `unknownDefaultOpenApi` (value: `"unknown_default_open_api"`)



12 changes: 12 additions & 0 deletions docs/TransactionApplicationRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# TransactionApplicationRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**app** | [**ApplicationRequest**](ApplicationRequest.md) | |
**providerModel** | [**ProviderModelEnum**](ProviderModelEnum.md) | |
**provider** | [**ModelRequest**](ModelRequest.md) | |



11 changes: 11 additions & 0 deletions docs/TransactionApplicationResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# TransactionApplicationResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**applied** | **kotlin.Boolean** | |
**logs** | **kotlin.collections.List&lt;kotlin.String&gt;** | |



Loading

0 comments on commit 24a4356

Please sign in to comment.