Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Sypport OAuth Client Settings and Dynamic Client Registration (/oauth/clientSettings PF API) #145

Closed
carloprone opened this issue Oct 19, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@carloprone
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Introduce a new singleton resource to manage the "OAuth Client Settings" configuration on PingFederate, using the /oauth/clientSettings API.

New or Affected Resource(s)

  • pingfederate_oauth_auth_client_settings

Potential Terraform Configuration

resource "pingfederate_oauth_auth_client_settings" "settings" {

client_metadata = [
  {
    parameter: "custom_client_param_1"
    description: "custom client parameter 1's description"
    multiValued: true
  },
  {
    parameter: "custom_client_param_2"
    description: "custom client parameter 2's description"
    multiValued: false
  }
]

dynamic_client_registration = {
  initial_access_token_scope = "my_default_scope"
  restrict_common_scopes = false
  allowed_exclusive_scopers = [
    "my_allowed_scope",
    "another_one"
  ]
 ...
 }

}

References

PingFederate_oauth_clientSettings_apidoc_1

PingFederate_oauth_clientSettings_apidoc_2

PingFederate_oauth_clientSettings_apidoc_3

pingfederate_oauth_clientsettings_apidoc_operationmodel.pdf
l

@carloprone carloprone added the enhancement New feature or request label Oct 19, 2021
@iwarapter
Copy link
Owner

The clientMetadata block is actually the same as the extended properties which is already supported - https://registry.terraform.io/providers/iwarapter/pingfederate/latest/docs/resources/extended_properties

I'll add in support for the dynamic client registration and policies to get the rest working soon.

@carloprone
Copy link
Author

Good to know!
I noticed that the clientMetadata were the same of another API (weird?) but actually I'm mostly interested in the DCR part of this API. I'm glad to hear you are working on it!

Also, I don't have any experience in developing TF adapters yet, but I'm willing to try to help if needed :)

Cheers!

@iwarapter
Copy link
Owner

https://github.com/iwarapter/terraform-provider-pingfederate/releases/tag/v0.0.22 is now available, please see the not around the conflicting resources.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants