Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add device policy FIDO migrate #211

Merged
merged 2 commits into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
* **Enhancement** Add ability to set default server index and a server variable default value on the client configuration as an alternative option to setting them in the context. [#205](https://github.com/patrickcping/pingone-go-sdk-v2/pull/205)
* `github.com/patrickcping/pingone-go-sdk-v2/mfa` : [v0.13.0](./mfa/CHANGELOG.md)
* **Note** Now suppresses errors when attempting to unmarshal an ENUM value from JSON that isn't yet supported in the SDK. The value is now returned as `UNKNOWN`. [#208](https://github.com/patrickcping/pingone-go-sdk-v2/pull/208)
* **Breaking change** Changed the request and response payload of the `DeviceAuthenticationPolicyApi.CreateDeviceAuthenticationPolicies` API to account for the ability to migrate device authentication policies from legacy FIDO to upgraded FIDO2 policies. [#211](https://github.com/patrickcping/pingone-go-sdk-v2/pull/211)
* **Breaking change** Migrated `CreateMFAPushCredentialRequest` and `UpdateMFAPushCredentialRequest` to `MFAPushCredentialRequest`. [#201](https://github.com/patrickcping/pingone-go-sdk-v2/pull/201)
* **Breaking change** Migrated `EntityArrayEmbeddedPushCredentialsInner` to `MFAPushCredentialResponse`. [#201](https://github.com/patrickcping/pingone-go-sdk-v2/pull/201)
* **Note** Deprecated old FIDO policy API. [#202](https://github.com/patrickcping/pingone-go-sdk-v2/pull/202)
* **Feature** Support for upgraded FIDO2 policies API. [#202](https://github.com/patrickcping/pingone-go-sdk-v2/pull/202), [#209](https://github.com/patrickcping/pingone-go-sdk-v2/pull/209), [#210](https://github.com/patrickcping/pingone-go-sdk-v2/pull/210)
* **Enhancement** Add support for migrating device authentication policies from legacy FIDO to upgraded FIDO2 policies. [#211](https://github.com/patrickcping/pingone-go-sdk-v2/pull/211)
* **Enhancement** Add support for FIDO2 policies API in MFA Device Policies. [#202](https://github.com/patrickcping/pingone-go-sdk-v2/pull/202)
* **Enhancement** Add optional attribute `PairingDisabled` to each MFA Device Policy device type. [#202](https://github.com/patrickcping/pingone-go-sdk-v2/pull/202), [#204](https://github.com/patrickcping/pingone-go-sdk-v2/pull/204)
* **Enhancement** Add parameters `protocol`, `baseDomain` and `baseHostname` to server configuration. [#205](https://github.com/patrickcping/pingone-go-sdk-v2/pull/205)
Expand Down
6 changes: 6 additions & 0 deletions mfa/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ docs/DeviceAuthenticationPolicyApi.md
docs/DeviceAuthenticationPolicyAuthentication.md
docs/DeviceAuthenticationPolicyFIDODevice.md
docs/DeviceAuthenticationPolicyFido2.md
docs/DeviceAuthenticationPolicyMigrate.md
docs/DeviceAuthenticationPolicyMigrateData.md
docs/DeviceAuthenticationPolicyMobile.md
docs/DeviceAuthenticationPolicyMobileApplicationsInner.md
docs/DeviceAuthenticationPolicyMobileApplicationsInnerAutoEnrollment.md
Expand All @@ -35,6 +37,7 @@ docs/DeviceAuthenticationPolicyOfflineDeviceOtp.md
docs/DeviceAuthenticationPolicyOfflineDeviceOtpFailure.md
docs/DeviceAuthenticationPolicyOfflineDeviceOtpFailureCoolDown.md
docs/DeviceAuthenticationPolicyOfflineDeviceOtpLifeTime.md
docs/DeviceAuthenticationPolicyPost.md
docs/DeviceAuthenticationPolicyTotp.md
docs/DeviceAuthenticationPolicyTotpOtp.md
docs/EnableUsersMFAApi.md
Expand Down Expand Up @@ -99,6 +102,8 @@ model_device_authentication_policy.go
model_device_authentication_policy_authentication.go
model_device_authentication_policy_fido2.go
model_device_authentication_policy_fido_device.go
model_device_authentication_policy_migrate.go
model_device_authentication_policy_migrate_data.go
model_device_authentication_policy_mobile.go
model_device_authentication_policy_mobile_applications_inner.go
model_device_authentication_policy_mobile_applications_inner_auto_enrollment.go
Expand All @@ -118,6 +123,7 @@ model_device_authentication_policy_offline_device_otp.go
model_device_authentication_policy_offline_device_otp_failure.go
model_device_authentication_policy_offline_device_otp_failure_cool_down.go
model_device_authentication_policy_offline_device_otp_life_time.go
model_device_authentication_policy_post.go
model_device_authentication_policy_totp.go
model_device_authentication_policy_totp_otp.go
model_entity_array.go
Expand Down
2 changes: 2 additions & 0 deletions mfa/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# v0.13.0 (Unreleased)

* **Note** Now suppresses errors when attempting to unmarshal an ENUM value from JSON that isn't yet supported in the SDK. The value is now returned as `UNKNOWN`. [#208](https://github.com/patrickcping/pingone-go-sdk-v2/pull/208)
* **Breaking change** Changed the request and response payload of the `DeviceAuthenticationPolicyApi.CreateDeviceAuthenticationPolicies` API to account for the ability to migrate device authentication policies from legacy FIDO to upgraded FIDO2 policies. [#211](https://github.com/patrickcping/pingone-go-sdk-v2/pull/211)
* **Breaking change** Migrated `CreateMFAPushCredentialRequest` and `UpdateMFAPushCredentialRequest` to `MFAPushCredentialRequest`. [#201](https://github.com/patrickcping/pingone-go-sdk-v2/pull/201)
* **Breaking change** Migrated `EntityArrayEmbeddedPushCredentialsInner` to `MFAPushCredentialResponse`. [#201](https://github.com/patrickcping/pingone-go-sdk-v2/pull/201)
* **Note** Deprecated old FIDO policy API. [#202](https://github.com/patrickcping/pingone-go-sdk-v2/pull/202)
* **Feature** Support for upgraded FIDO2 policies API. [#202](https://github.com/patrickcping/pingone-go-sdk-v2/pull/202), [#209](https://github.com/patrickcping/pingone-go-sdk-v2/pull/209), [#210](https://github.com/patrickcping/pingone-go-sdk-v2/pull/210)
* **Enhancement** Add support for migrating device authentication policies from legacy FIDO to upgraded FIDO2 policies. [#211](https://github.com/patrickcping/pingone-go-sdk-v2/pull/211)
* **Enhancement** Add support for FIDO2 policies API in MFA Device Policies. [#202](https://github.com/patrickcping/pingone-go-sdk-v2/pull/202)
* **Enhancement** Add optional attribute `PairingDisabled` to each MFA Device Policy device type. [#202](https://github.com/patrickcping/pingone-go-sdk-v2/pull/202), [#204](https://github.com/patrickcping/pingone-go-sdk-v2/pull/204)
* **Enhancement** Add parameters `protocol`, `baseDomain` and `baseHostname` to server configuration. [#205](https://github.com/patrickcping/pingone-go-sdk-v2/pull/205)
Expand Down
3 changes: 3 additions & 0 deletions mfa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ Class | Method | HTTP request | Description
- [DeviceAuthenticationPolicyAuthentication](docs/DeviceAuthenticationPolicyAuthentication.md)
- [DeviceAuthenticationPolicyFIDODevice](docs/DeviceAuthenticationPolicyFIDODevice.md)
- [DeviceAuthenticationPolicyFido2](docs/DeviceAuthenticationPolicyFido2.md)
- [DeviceAuthenticationPolicyMigrate](docs/DeviceAuthenticationPolicyMigrate.md)
- [DeviceAuthenticationPolicyMigrateData](docs/DeviceAuthenticationPolicyMigrateData.md)
- [DeviceAuthenticationPolicyMobile](docs/DeviceAuthenticationPolicyMobile.md)
- [DeviceAuthenticationPolicyMobileApplicationsInner](docs/DeviceAuthenticationPolicyMobileApplicationsInner.md)
- [DeviceAuthenticationPolicyMobileApplicationsInnerAutoEnrollment](docs/DeviceAuthenticationPolicyMobileApplicationsInnerAutoEnrollment.md)
Expand All @@ -144,6 +146,7 @@ Class | Method | HTTP request | Description
- [DeviceAuthenticationPolicyOfflineDeviceOtpFailure](docs/DeviceAuthenticationPolicyOfflineDeviceOtpFailure.md)
- [DeviceAuthenticationPolicyOfflineDeviceOtpFailureCoolDown](docs/DeviceAuthenticationPolicyOfflineDeviceOtpFailureCoolDown.md)
- [DeviceAuthenticationPolicyOfflineDeviceOtpLifeTime](docs/DeviceAuthenticationPolicyOfflineDeviceOtpLifeTime.md)
- [DeviceAuthenticationPolicyPost](docs/DeviceAuthenticationPolicyPost.md)
- [DeviceAuthenticationPolicyTotp](docs/DeviceAuthenticationPolicyTotp.md)
- [DeviceAuthenticationPolicyTotpOtp](docs/DeviceAuthenticationPolicyTotpOtp.md)
- [EntityArray](docs/EntityArray.md)
Expand Down
37 changes: 35 additions & 2 deletions mfa/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,10 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceAuthenticationPolicy'
$ref: '#/components/schemas/DeviceAuthenticationPolicyPost'
application/vnd.pingidentity.deviceAuthenticationPolicy.fido2.migrate+json:
schema:
$ref: '#/components/schemas/DeviceAuthenticationPolicyPost'
responses:
"400":
content:
Expand Down Expand Up @@ -526,8 +529,14 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceAuthenticationPolicy'
$ref: '#/components/schemas/DeviceAuthenticationPolicyPost'
description: Successful response
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceAuthenticationPolicyPost'
description: Successful response (migration)
summary: CREATE Device Authentication Policy
tags:
- Device Authentication Policy
Expand Down Expand Up @@ -3032,6 +3041,30 @@ components:
- totp
- voice
type: object
DeviceAuthenticationPolicyPost:
oneOf:
- $ref: '#/components/schemas/DeviceAuthenticationPolicy'
- $ref: '#/components/schemas/DeviceAuthenticationPolicyMigrate'
DeviceAuthenticationPolicyMigrate:
properties:
migrationData:
items:
$ref: '#/components/schemas/DeviceAuthenticationPolicyMigrateData'
type: array
required:
- migrationData
type: object
DeviceAuthenticationPolicyMigrateData:
properties:
deviceAuthenticationPolicyId:
description: The ID of the device authentication policy.
type: string
fido2PolicyId:
description: The ID of the FIDO2 policy.
type: string
required:
- deviceAuthenticationPolicyId
type: object
EntityArray:
example:
size: 4.145608029883936
Expand Down
22 changes: 11 additions & 11 deletions mfa/api_device_authentication_policy.go

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

Loading