Skip to content

Commit

Permalink
initial draft
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickcping committed Oct 9, 2024
1 parent fc1a14d commit 13d28a6
Show file tree
Hide file tree
Showing 16 changed files with 571 additions and 6 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
* **Note** Upgraded go version to 1.22 to align with the go [release policy](https://go.dev/doc/devel/release#policy). [#376](https://github.com/patrickcping/pingone-go-sdk-v2/pull/376)
* `github.com/patrickcping/pingone-go-sdk-v2/credentials` : [v0.9.1](./credentials/CHANGELOG.md)
* **Note** Upgraded go version to 1.22 to align with the go [release policy](https://go.dev/doc/devel/release#policy). [#376](https://github.com/patrickcping/pingone-go-sdk-v2/pull/376)
* `github.com/patrickcping/pingone-go-sdk-v2/management` : [v0.43.1](./management/CHANGELOG.md)
* **Note** Upgraded go version to 1.22 to align with the go [release policy](https://go.dev/doc/devel/release#policy). [#376](https://github.com/patrickcping/pingone-go-sdk-v2/pull/376)
* `github.com/patrickcping/pingone-go-sdk-v2/management` : [v0.44.0](./management/CHANGELOG.md)
* **Note** Upgraded go version to 1.22 to align with the go [release policy](https://go.dev/doc/devel/release#policy). [#376](https://github.com/patrickcping/
pingone-go-sdk-v2/pull/376)
* **Enhancement** Added the ability to create applications with a custom client ID and secret.
* `github.com/patrickcping/pingone-go-sdk-v2/mfa` : [v0.20.1](./mfa/CHANGELOG.md)
* **Note** Upgraded go version to 1.22 to align with the go [release policy](https://go.dev/doc/devel/release#policy). [#376](https://github.com/patrickcping/pingone-go-sdk-v2/pull/376)
* `github.com/patrickcping/pingone-go-sdk-v2/risk` : [v0.16.1](./risk/CHANGELOG.md)
Expand Down
2 changes: 1 addition & 1 deletion management/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.43.1
0.44.0
3 changes: 2 additions & 1 deletion management/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# v0.43.1 (Unreleased)
# v0.44.0 (Unreleased)

* **Note** Upgraded go version to 1.22 to align with the go [release policy](https://go.dev/doc/devel/release#policy). [#376](https://github.com/patrickcping/pingone-go-sdk-v2/pull/376)
* **Enhancement** Added the ability to create applications with a custom client ID and secret.

# v0.43.0 (2024-07-22)

Expand Down
2 changes: 1 addition & 1 deletion management/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The PingOne Platform API covering the base and SSO services (otherwise known as
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 2023-06-29
- Package version: 0.43.1
- Package version: 0.44.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen

## Installation
Expand Down
32 changes: 32 additions & 0 deletions management/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28159,6 +28159,21 @@ components:
only on the POST request. The property is ignored when included in a
PUT request.
type: boolean
clientId:
description: "(Required when `clientSecret` is specified.) Supported only\
\ for `POST` operations. This is the UUID of an external application\
\ that is being migrated to PingOne. The UUID must be a minimum of 8\
\ alpha-numeric characters, and must be globally unique in PingOne."
minLength: 8
type: string
clientSecret:
description: (Required when `clientId` is specified.) Supported only for
`POST` operations. This is the client secret associated with `clientId`
for an external application that is being migrated to PingOne. This
must be a minimum of 8 alpha-numeric characters.
format: password
minLength: 8
type: string
corsSettings:
$ref: '#/components/schemas/ApplicationCorsSettings'
devicePathId:
Expand Down Expand Up @@ -34218,6 +34233,7 @@ components:
applicationPermissionsSettings:
claimEnabled: true
audience: audience
clientId: clientId
_links:
key:
href: https://openapi-generator.tech
Expand All @@ -34230,6 +34246,7 @@ components:
id: id
accessTokenValiditySeconds: 0
name: name
clientSecret: clientSecret
id: id
introspectEndpointAuthMethod: null
updatedAt: 2000-01-23T04:56:07.000+00:00
Expand All @@ -34252,6 +34269,21 @@ components:
\ and must not contain `pingone` or `pingidentity` (for example, `https://api.bxretail.org`).\
\ If a URL is not specified, the resource name is used."
type: string
clientId:
description: "(Required when `clientSecret` is specified.) Supported only\
\ for the `POST` operation. This is the UUID of an external resource that\
\ is being migrated to PingOne. The UUID must be a minimum of 8 alpha-numeric\
\ characters, and must be globally unique in PingOne."
minLength: 8
type: string
clientSecret:
description: (Required when clientId is specified.) Supported only for the
POST operation. This is the client secret associated with clientId for
an external resource that is being migrated to PingOne. This must be a
minimum of 8 alpha-numeric characters.
format: password
minLength: 8
type: string
createdAt:
description: The time the resource was created.
format: date-time
Expand Down
2 changes: 1 addition & 1 deletion management/configuration.go

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

52 changes: 52 additions & 0 deletions management/docs/ApplicationOIDC.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Name | Type | Description | Notes
**AdditionalRefreshTokenReplayProtectionEnabled** | Pointer to **bool** | When set to `true` (the default), if you attempt to reuse the refresh token, the authorization server immediately revokes the reused refresh token, as well as all descendant tokens. Setting this to null equates to a `false` setting. | [optional] [default to true]
**AllowWildcardInRedirectUris** | Pointer to **bool** | A boolean to specify whether wildcards are allowed in redirect URIs. For more information, see [Wildcards in Redirect URIs](https://docs.pingidentity.com/csh?context=p1_c_wildcard_redirect_uri). | [optional]
**AssignActorRoles** | Pointer to **bool** | A boolean that specifies whether the permissions service should assign default roles to the application. This property is set only on the POST request. The property is ignored when included in a PUT request. | [optional]
**ClientId** | Pointer to **string** | (Required when `clientSecret` is specified.) Supported only for `POST` operations. This is the UUID of an external application that is being migrated to PingOne. The UUID must be a minimum of 8 alpha-numeric characters, and must be globally unique in PingOne. | [optional]
**ClientSecret** | Pointer to **string** | (Required when `clientId` is specified.) Supported only for `POST` operations. This is the client secret associated with `clientId` for an external application that is being migrated to PingOne. This must be a minimum of 8 alpha-numeric characters. | [optional]
**CorsSettings** | Pointer to [**ApplicationCorsSettings**](ApplicationCorsSettings.md) | | [optional]
**DevicePathId** | Pointer to **string** | A string that specifies a unique identifier within an environment for a device authorization grant flow to provide a short identifier to the application. This property is ignored when the `deviceCustomVerificationUri` property is configured. The string can contain any letters, numbers, and some special characters (regex `a-zA-Z0-9_-`). It can have a length of no more than 50 characters (`min`/`max`=`1`/`50`). | [optional]
**DeviceCustomVerificationUri** | Pointer to **string** | A string that specifies an optional custom verification URI that is returned for the `/device_authorization` endpoint. | [optional]
Expand Down Expand Up @@ -476,6 +478,56 @@ SetAssignActorRoles sets AssignActorRoles field to given value.

HasAssignActorRoles returns a boolean if a field has been set.

### GetClientId

`func (o *ApplicationOIDC) GetClientId() string`

GetClientId returns the ClientId field if non-nil, zero value otherwise.

### GetClientIdOk

`func (o *ApplicationOIDC) GetClientIdOk() (*string, bool)`

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

### SetClientId

`func (o *ApplicationOIDC) SetClientId(v string)`

SetClientId sets ClientId field to given value.

### HasClientId

`func (o *ApplicationOIDC) HasClientId() bool`

HasClientId returns a boolean if a field has been set.

### GetClientSecret

`func (o *ApplicationOIDC) GetClientSecret() string`

GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise.

### GetClientSecretOk

`func (o *ApplicationOIDC) GetClientSecretOk() (*string, bool)`

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

### SetClientSecret

`func (o *ApplicationOIDC) SetClientSecret(v string)`

SetClientSecret sets ClientSecret field to given value.

### HasClientSecret

`func (o *ApplicationOIDC) HasClientSecret() bool`

HasClientSecret returns a boolean if a field has been set.

### GetCorsSettings

`func (o *ApplicationOIDC) GetCorsSettings() ApplicationCorsSettings`
Expand Down
52 changes: 52 additions & 0 deletions management/docs/CreateApplication201Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Name | Type | Description | Notes
**AdditionalRefreshTokenReplayProtectionEnabled** | Pointer to **bool** | When set to `true` (the default), if you attempt to reuse the refresh token, the authorization server immediately revokes the reused refresh token, as well as all descendant tokens. Setting this to null equates to a `false` setting. | [optional] [default to true]
**AllowWildcardInRedirectUris** | Pointer to **bool** | A boolean to specify whether wildcards are allowed in redirect URIs. For more information, see [Wildcards in Redirect URIs](https://docs.pingidentity.com/csh?context=p1_c_wildcard_redirect_uri). | [optional]
**AssignActorRoles** | Pointer to **bool** | A boolean that specifies whether the permissions service should assign default roles to the application. This property is set only on the POST request. The property is ignored when included in a PUT request. | [optional]
**ClientId** | Pointer to **string** | (Required when `clientSecret` is specified.) Supported only for `POST` operations. This is the UUID of an external application that is being migrated to PingOne. The UUID must be a minimum of 8 alpha-numeric characters, and must be globally unique in PingOne. | [optional]
**ClientSecret** | Pointer to **string** | (Required when `clientId` is specified.) Supported only for `POST` operations. This is the client secret associated with `clientId` for an external application that is being migrated to PingOne. This must be a minimum of 8 alpha-numeric characters. | [optional]
**DevicePathId** | Pointer to **string** | A string that specifies a unique identifier within an environment for a device authorization grant flow to provide a short identifier to the application. This property is ignored when the `deviceCustomVerificationUri` property is configured. The string can contain any letters, numbers, and some special characters (regex `a-zA-Z0-9_-`). It can have a length of no more than 50 characters (`min`/`max`=`1`/`50`). | [optional]
**DeviceCustomVerificationUri** | Pointer to **string** | A string that specifies an optional custom verification URI that is returned for the `/device_authorization` endpoint. | [optional]
**DeviceTimeout** | Pointer to **int32** | An integer that specifies the length of time (in seconds) that the `userCode` and `deviceCode` returned by the `/device_authorization` endpoint are valid. This property is required only for applications in which the `grantTypes` property is set to `device_code`. The default value is `600` seconds. It can have a value of no more than `3600` seconds (`min`/`max`=`1`/`3600`). | [optional] [default to 600]
Expand Down Expand Up @@ -919,6 +921,56 @@ SetAssignActorRoles sets AssignActorRoles field to given value.

HasAssignActorRoles returns a boolean if a field has been set.

### GetClientId

`func (o *CreateApplication201Response) GetClientId() string`

GetClientId returns the ClientId field if non-nil, zero value otherwise.

### GetClientIdOk

`func (o *CreateApplication201Response) GetClientIdOk() (*string, bool)`

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

### SetClientId

`func (o *CreateApplication201Response) SetClientId(v string)`

SetClientId sets ClientId field to given value.

### HasClientId

`func (o *CreateApplication201Response) HasClientId() bool`

HasClientId returns a boolean if a field has been set.

### GetClientSecret

`func (o *CreateApplication201Response) GetClientSecret() string`

GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise.

### GetClientSecretOk

`func (o *CreateApplication201Response) GetClientSecretOk() (*string, bool)`

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

### SetClientSecret

`func (o *CreateApplication201Response) SetClientSecret(v string)`

SetClientSecret sets ClientSecret field to given value.

### HasClientSecret

`func (o *CreateApplication201Response) HasClientSecret() bool`

HasClientSecret returns a boolean if a field has been set.

### GetDevicePathId

`func (o *CreateApplication201Response) GetDevicePathId() string`
Expand Down
52 changes: 52 additions & 0 deletions management/docs/CreateApplicationRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Name | Type | Description | Notes
**AdditionalRefreshTokenReplayProtectionEnabled** | Pointer to **bool** | When set to `true` (the default), if you attempt to reuse the refresh token, the authorization server immediately revokes the reused refresh token, as well as all descendant tokens. Setting this to null equates to a `false` setting. | [optional] [default to true]
**AllowWildcardInRedirectUris** | Pointer to **bool** | A boolean to specify whether wildcards are allowed in redirect URIs. For more information, see [Wildcards in Redirect URIs](https://docs.pingidentity.com/csh?context=p1_c_wildcard_redirect_uri). | [optional]
**AssignActorRoles** | Pointer to **bool** | A boolean that specifies whether the permissions service should assign default roles to the application. This property is set only on the POST request. The property is ignored when included in a PUT request. | [optional]
**ClientId** | Pointer to **string** | (Required when `clientSecret` is specified.) Supported only for `POST` operations. This is the UUID of an external application that is being migrated to PingOne. The UUID must be a minimum of 8 alpha-numeric characters, and must be globally unique in PingOne. | [optional]
**ClientSecret** | Pointer to **string** | (Required when `clientId` is specified.) Supported only for `POST` operations. This is the client secret associated with `clientId` for an external application that is being migrated to PingOne. This must be a minimum of 8 alpha-numeric characters. | [optional]
**DevicePathId** | Pointer to **string** | A string that specifies a unique identifier within an environment for a device authorization grant flow to provide a short identifier to the application. This property is ignored when the `deviceCustomVerificationUri` property is configured. The string can contain any letters, numbers, and some special characters (regex `a-zA-Z0-9_-`). It can have a length of no more than 50 characters (`min`/`max`=`1`/`50`). | [optional]
**DeviceCustomVerificationUri** | Pointer to **string** | A string that specifies an optional custom verification URI that is returned for the `/device_authorization` endpoint. | [optional]
**DeviceTimeout** | Pointer to **int32** | An integer that specifies the length of time (in seconds) that the `userCode` and `deviceCode` returned by the `/device_authorization` endpoint are valid. This property is required only for applications in which the `grantTypes` property is set to `device_code`. The default value is `600` seconds. It can have a value of no more than `3600` seconds (`min`/`max`=`1`/`3600`). | [optional] [default to 600]
Expand Down Expand Up @@ -919,6 +921,56 @@ SetAssignActorRoles sets AssignActorRoles field to given value.

HasAssignActorRoles returns a boolean if a field has been set.

### GetClientId

`func (o *CreateApplicationRequest) GetClientId() string`

GetClientId returns the ClientId field if non-nil, zero value otherwise.

### GetClientIdOk

`func (o *CreateApplicationRequest) GetClientIdOk() (*string, bool)`

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

### SetClientId

`func (o *CreateApplicationRequest) SetClientId(v string)`

SetClientId sets ClientId field to given value.

### HasClientId

`func (o *CreateApplicationRequest) HasClientId() bool`

HasClientId returns a boolean if a field has been set.

### GetClientSecret

`func (o *CreateApplicationRequest) GetClientSecret() string`

GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise.

### GetClientSecretOk

`func (o *CreateApplicationRequest) GetClientSecretOk() (*string, bool)`

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

### SetClientSecret

`func (o *CreateApplicationRequest) SetClientSecret(v string)`

SetClientSecret sets ClientSecret field to given value.

### HasClientSecret

`func (o *CreateApplicationRequest) HasClientSecret() bool`

HasClientSecret returns a boolean if a field has been set.

### GetDevicePathId

`func (o *CreateApplicationRequest) GetDevicePathId() string`
Expand Down
Loading

0 comments on commit 13d28a6

Please sign in to comment.