Skip to content

Commit

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

##### `GET` /providers/saml/{id}/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Added property `default_relay_state` (string)
        > Default relay_state value for IDP-initiated logins

##### `PUT` /providers/saml/{id}/

###### Request:

Changed content type : `application/json`

* Added property `default_relay_state` (string)
    > Default relay_state value for IDP-initiated logins

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Added property `default_relay_state` (string)
        > Default relay_state value for IDP-initiated logins

##### `PATCH` /providers/saml/{id}/

###### Request:

Changed content type : `application/json`

* Added property `default_relay_state` (string)
    > Default relay_state value for IDP-initiated logins

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Added property `default_relay_state` (string)
        > Default relay_state value for IDP-initiated logins

##### `POST` /providers/saml/

###### Request:

Changed content type : `application/json`

* Added property `default_relay_state` (string)
    > Default relay_state value for IDP-initiated logins

###### Return Type:

Changed response : **201 Created**

* Changed content type : `application/json`

    * Added property `default_relay_state` (string)
        > Default relay_state value for IDP-initiated logins

##### `GET` /providers/saml/

###### Parameters:

Added: `default_relay_state` in `query`

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Changed property `results` (array)

        Changed items (object):
            > SAMLProvider Serializer

        * Added property `default_relay_state` (string)
            > Default relay_state value for IDP-initiated logins

##### `PUT` /core/transactional/applications/

###### Request:

Changed content type : `application/json`

* Changed property `provider` (object)

    Updated `authentik_providers_saml.samlprovider` provider_model:
    * Added property `default_relay_state` (string)
        > Default relay_state value for IDP-initiated logins
  • Loading branch information
authentik-automation[bot] committed Oct 8, 2023
1 parent ef3430f commit 01c2887
Show file tree
Hide file tree
Showing 11 changed files with 262 additions and 2 deletions.
21 changes: 21 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18136,6 +18136,13 @@ paths:
format: uuid
type: string
style: form
- explode: true
in: query
name: default_relay_state
required: false
schema:
type: string
style: form
- description: |-
* `http://www.w3.org/2000/09/xmldsig#sha1` - SHA1
* `http://www.w3.org/2001/04/xmlenc#sha256` - SHA256
Expand Down Expand Up @@ -41863,6 +41870,7 @@ components:
verbose_name_plural: verbose_name_plural
url_slo_redirect: url_slo_redirect
session_valid_not_on_or_after: session_valid_not_on_or_after
default_relay_state: default_relay_state
assigned_application_slug: assigned_application_slug
issuer: issuer
url_sso_redirect: url_sso_redirect
Expand Down Expand Up @@ -41896,6 +41904,7 @@ components:
verbose_name_plural: verbose_name_plural
url_slo_redirect: url_slo_redirect
session_valid_not_on_or_after: session_valid_not_on_or_after
default_relay_state: default_relay_state
assigned_application_slug: assigned_application_slug
issuer: issuer
url_sso_redirect: url_sso_redirect
Expand Down Expand Up @@ -46492,6 +46501,7 @@ components:
audience: audience
session_valid_not_on_or_after: session_valid_not_on_or_after
sp_binding: ""
default_relay_state: default_relay_state
acs_url: https://openapi-generator.tech
issuer: issuer
assertion_valid_not_before: assertion_valid_not_before
Expand Down Expand Up @@ -46588,6 +46598,9 @@ components:
* `redirect` - Redirect
* `post` - Post
title: Service Provider Binding
default_relay_state:
description: Default relay_state value for IDP-initiated logins
type: string
type: object
PatchedSAMLSourceRequest:
description: SAMLSource Serializer
Expand Down Expand Up @@ -49368,6 +49381,7 @@ components:
verbose_name_plural: verbose_name_plural
url_slo_redirect: url_slo_redirect
session_valid_not_on_or_after: session_valid_not_on_or_after
default_relay_state: default_relay_state
assigned_application_slug: assigned_application_slug
issuer: issuer
url_sso_redirect: url_sso_redirect
Expand Down Expand Up @@ -49508,6 +49522,9 @@ components:
* `redirect` - Redirect
* `post` - Post
title: Service Provider Binding
default_relay_state:
description: Default relay_state value for IDP-initiated logins
type: string
url_download_metadata:
description: Get metadata download URL
readOnly: true
Expand Down Expand Up @@ -49575,6 +49592,7 @@ components:
audience: audience
session_valid_not_on_or_after: session_valid_not_on_or_after
sp_binding: ""
default_relay_state: default_relay_state
acs_url: https://openapi-generator.tech
issuer: issuer
assertion_valid_not_before: assertion_valid_not_before
Expand Down Expand Up @@ -49671,6 +49689,9 @@ components:
* `redirect` - Redirect
* `post` - Post
title: Service Provider Binding
default_relay_state:
description: Default relay_state value for IDP-initiated logins
type: string
required:
- acs_url
- authorization_flow
Expand Down
9 changes: 9 additions & 0 deletions api_providers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions docs/ModelRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Name | Type | Description | Notes
**SigningKp** | Pointer to **NullableString** | Keypair used to sign outgoing Responses going to the Service Provider. | [optional]
**VerificationKp** | Pointer to **NullableString** | When selected, incoming assertion's Signatures will be validated against this certificate. To allow unsigned Requests, leave on default. | [optional]
**SpBinding** | Pointer to [**SpBindingEnum**](SpBindingEnum.md) | This determines how authentik sends the response back to the Service Provider. * `redirect` - Redirect * `post` - Post | [optional]
**DefaultRelayState** | Pointer to **string** | Default relay_state value for IDP-initiated logins | [optional]
**PropertyMappingsGroup** | Pointer to **[]string** | Property mappings used for group creation/updating. | [optional]
**Url** | **string** | Base URL to SCIM requests, usually ends in /v2 |
**Token** | **string** | Authentication token |
Expand Down Expand Up @@ -1353,6 +1354,31 @@ SetSpBinding sets SpBinding field to given value.

HasSpBinding returns a boolean if a field has been set.

### GetDefaultRelayState

`func (o *ModelRequest) GetDefaultRelayState() string`

GetDefaultRelayState returns the DefaultRelayState field if non-nil, zero value otherwise.

### GetDefaultRelayStateOk

`func (o *ModelRequest) GetDefaultRelayStateOk() (*string, bool)`

GetDefaultRelayStateOk returns a tuple with the DefaultRelayState field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDefaultRelayState

`func (o *ModelRequest) SetDefaultRelayState(v string)`

SetDefaultRelayState sets DefaultRelayState field to given value.

### HasDefaultRelayState

`func (o *ModelRequest) HasDefaultRelayState() bool`

HasDefaultRelayState returns a boolean if a field has been set.

### GetPropertyMappingsGroup

`func (o *ModelRequest) GetPropertyMappingsGroup() []string`
Expand Down
26 changes: 26 additions & 0 deletions docs/PatchedSAMLProviderRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Name | Type | Description | Notes
**SigningKp** | Pointer to **NullableString** | Keypair used to sign outgoing Responses going to the Service Provider. | [optional]
**VerificationKp** | Pointer to **NullableString** | When selected, incoming assertion's Signatures will be validated against this certificate. To allow unsigned Requests, leave on default. | [optional]
**SpBinding** | Pointer to [**SpBindingEnum**](SpBindingEnum.md) | This determines how authentik sends the response back to the Service Provider. * `redirect` - Redirect * `post` - Post | [optional]
**DefaultRelayState** | Pointer to **string** | Default relay_state value for IDP-initiated logins | [optional]

## Methods

Expand Down Expand Up @@ -480,6 +481,31 @@ SetSpBinding sets SpBinding field to given value.

HasSpBinding returns a boolean if a field has been set.

### GetDefaultRelayState

`func (o *PatchedSAMLProviderRequest) GetDefaultRelayState() string`

GetDefaultRelayState returns the DefaultRelayState field if non-nil, zero value otherwise.

### GetDefaultRelayStateOk

`func (o *PatchedSAMLProviderRequest) GetDefaultRelayStateOk() (*string, bool)`

GetDefaultRelayStateOk returns a tuple with the DefaultRelayState field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDefaultRelayState

`func (o *PatchedSAMLProviderRequest) SetDefaultRelayState(v string)`

SetDefaultRelayState sets DefaultRelayState field to given value.

### HasDefaultRelayState

`func (o *PatchedSAMLProviderRequest) HasDefaultRelayState() bool`

HasDefaultRelayState returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
6 changes: 4 additions & 2 deletions docs/ProvidersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2799,7 +2799,7 @@ Name | Type | Description | Notes

## ProvidersSamlList

> PaginatedSAMLProviderList ProvidersSamlList(ctx).AcsUrl(acsUrl).AssertionValidNotBefore(assertionValidNotBefore).AssertionValidNotOnOrAfter(assertionValidNotOnOrAfter).Audience(audience).AuthenticationFlow(authenticationFlow).AuthorizationFlow(authorizationFlow).BackchannelApplication(backchannelApplication).DigestAlgorithm(digestAlgorithm).IsBackchannel(isBackchannel).Issuer(issuer).Name(name).NameIdMapping(nameIdMapping).Ordering(ordering).Page(page).PageSize(pageSize).PropertyMappings(propertyMappings).Search(search).SessionValidNotOnOrAfter(sessionValidNotOnOrAfter).SignatureAlgorithm(signatureAlgorithm).SigningKp(signingKp).SpBinding(spBinding).VerificationKp(verificationKp).Execute()
> PaginatedSAMLProviderList ProvidersSamlList(ctx).AcsUrl(acsUrl).AssertionValidNotBefore(assertionValidNotBefore).AssertionValidNotOnOrAfter(assertionValidNotOnOrAfter).Audience(audience).AuthenticationFlow(authenticationFlow).AuthorizationFlow(authorizationFlow).BackchannelApplication(backchannelApplication).DefaultRelayState(defaultRelayState).DigestAlgorithm(digestAlgorithm).IsBackchannel(isBackchannel).Issuer(issuer).Name(name).NameIdMapping(nameIdMapping).Ordering(ordering).Page(page).PageSize(pageSize).PropertyMappings(propertyMappings).Search(search).SessionValidNotOnOrAfter(sessionValidNotOnOrAfter).SignatureAlgorithm(signatureAlgorithm).SigningKp(signingKp).SpBinding(spBinding).VerificationKp(verificationKp).Execute()


Expand All @@ -2825,6 +2825,7 @@ func main() {
authenticationFlow := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
authorizationFlow := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
backchannelApplication := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional)
defaultRelayState := "defaultRelayState_example" // string | (optional)
digestAlgorithm := "digestAlgorithm_example" // string | * `http://www.w3.org/2000/09/xmldsig#sha1` - SHA1 * `http://www.w3.org/2001/04/xmlenc#sha256` - SHA256 * `http://www.w3.org/2001/04/xmldsig-more#sha384` - SHA384 * `http://www.w3.org/2001/04/xmlenc#sha512` - SHA512 (optional)
isBackchannel := true // bool | (optional)
issuer := "issuer_example" // string | (optional)
Expand All @@ -2843,7 +2844,7 @@ func main() {

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ProvidersApi.ProvidersSamlList(context.Background()).AcsUrl(acsUrl).AssertionValidNotBefore(assertionValidNotBefore).AssertionValidNotOnOrAfter(assertionValidNotOnOrAfter).Audience(audience).AuthenticationFlow(authenticationFlow).AuthorizationFlow(authorizationFlow).BackchannelApplication(backchannelApplication).DigestAlgorithm(digestAlgorithm).IsBackchannel(isBackchannel).Issuer(issuer).Name(name).NameIdMapping(nameIdMapping).Ordering(ordering).Page(page).PageSize(pageSize).PropertyMappings(propertyMappings).Search(search).SessionValidNotOnOrAfter(sessionValidNotOnOrAfter).SignatureAlgorithm(signatureAlgorithm).SigningKp(signingKp).SpBinding(spBinding).VerificationKp(verificationKp).Execute()
resp, r, err := apiClient.ProvidersApi.ProvidersSamlList(context.Background()).AcsUrl(acsUrl).AssertionValidNotBefore(assertionValidNotBefore).AssertionValidNotOnOrAfter(assertionValidNotOnOrAfter).Audience(audience).AuthenticationFlow(authenticationFlow).AuthorizationFlow(authorizationFlow).BackchannelApplication(backchannelApplication).DefaultRelayState(defaultRelayState).DigestAlgorithm(digestAlgorithm).IsBackchannel(isBackchannel).Issuer(issuer).Name(name).NameIdMapping(nameIdMapping).Ordering(ordering).Page(page).PageSize(pageSize).PropertyMappings(propertyMappings).Search(search).SessionValidNotOnOrAfter(sessionValidNotOnOrAfter).SignatureAlgorithm(signatureAlgorithm).SigningKp(signingKp).SpBinding(spBinding).VerificationKp(verificationKp).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ProvidersApi.ProvidersSamlList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand Down Expand Up @@ -2871,6 +2872,7 @@ Name | Type | Description | Notes
**authenticationFlow** | **string** | |
**authorizationFlow** | **string** | |
**backchannelApplication** | **string** | |
**defaultRelayState** | **string** | |
**digestAlgorithm** | **string** | * `http://www.w3.org/2000/09/xmldsig#sha1` - SHA1 * `http://www.w3.org/2001/04/xmlenc#sha256` - SHA256 * `http://www.w3.org/2001/04/xmldsig-more#sha384` - SHA384 * `http://www.w3.org/2001/04/xmlenc#sha512` - SHA512 |
**isBackchannel** | **bool** | |
**issuer** | **string** | |
Expand Down
26 changes: 26 additions & 0 deletions docs/SAMLProvider.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Name | Type | Description | Notes
**SigningKp** | Pointer to **NullableString** | Keypair used to sign outgoing Responses going to the Service Provider. | [optional]
**VerificationKp** | Pointer to **NullableString** | When selected, incoming assertion's Signatures will be validated against this certificate. To allow unsigned Requests, leave on default. | [optional]
**SpBinding** | Pointer to [**SpBindingEnum**](SpBindingEnum.md) | This determines how authentik sends the response back to the Service Provider. * `redirect` - Redirect * `post` - Post | [optional]
**DefaultRelayState** | Pointer to **string** | Default relay_state value for IDP-initiated logins | [optional]
**UrlDownloadMetadata** | **string** | Get metadata download URL | [readonly]
**UrlSsoPost** | **string** | Get SSO Post URL | [readonly]
**UrlSsoRedirect** | **string** | Get SSO Redirect URL | [readonly]
Expand Down Expand Up @@ -660,6 +661,31 @@ SetSpBinding sets SpBinding field to given value.

HasSpBinding returns a boolean if a field has been set.

### GetDefaultRelayState

`func (o *SAMLProvider) GetDefaultRelayState() string`

GetDefaultRelayState returns the DefaultRelayState field if non-nil, zero value otherwise.

### GetDefaultRelayStateOk

`func (o *SAMLProvider) GetDefaultRelayStateOk() (*string, bool)`

GetDefaultRelayStateOk returns a tuple with the DefaultRelayState field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDefaultRelayState

`func (o *SAMLProvider) SetDefaultRelayState(v string)`

SetDefaultRelayState sets DefaultRelayState field to given value.

### HasDefaultRelayState

`func (o *SAMLProvider) HasDefaultRelayState() bool`

HasDefaultRelayState returns a boolean if a field has been set.

### GetUrlDownloadMetadata

`func (o *SAMLProvider) GetUrlDownloadMetadata() string`
Expand Down
26 changes: 26 additions & 0 deletions docs/SAMLProviderRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Name | Type | Description | Notes
**SigningKp** | Pointer to **NullableString** | Keypair used to sign outgoing Responses going to the Service Provider. | [optional]
**VerificationKp** | Pointer to **NullableString** | When selected, incoming assertion's Signatures will be validated against this certificate. To allow unsigned Requests, leave on default. | [optional]
**SpBinding** | Pointer to [**SpBindingEnum**](SpBindingEnum.md) | This determines how authentik sends the response back to the Service Provider. * `redirect` - Redirect * `post` - Post | [optional]
**DefaultRelayState** | Pointer to **string** | Default relay_state value for IDP-initiated logins | [optional]

## Methods

Expand Down Expand Up @@ -465,6 +466,31 @@ SetSpBinding sets SpBinding field to given value.

HasSpBinding returns a boolean if a field has been set.

### GetDefaultRelayState

`func (o *SAMLProviderRequest) GetDefaultRelayState() string`

GetDefaultRelayState returns the DefaultRelayState field if non-nil, zero value otherwise.

### GetDefaultRelayStateOk

`func (o *SAMLProviderRequest) GetDefaultRelayStateOk() (*string, bool)`

GetDefaultRelayStateOk returns a tuple with the DefaultRelayState field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDefaultRelayState

`func (o *SAMLProviderRequest) SetDefaultRelayState(v string)`

SetDefaultRelayState sets DefaultRelayState field to given value.

### HasDefaultRelayState

`func (o *SAMLProviderRequest) HasDefaultRelayState() bool`

HasDefaultRelayState returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
37 changes: 37 additions & 0 deletions model_patched_saml_provider_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 01c2887

Please sign in to comment.