Skip to content

feat: add DPoP bound access tokens to OAuth apps#2834

Open
laurynas-jonusas wants to merge 2 commits into
okta:masterfrom
laurynas-jonusas:feat/oauth-dpop-bound-access-tokens
Open

feat: add DPoP bound access tokens to OAuth apps#2834
laurynas-jonusas wants to merge 2 commits into
okta:masterfrom
laurynas-jonusas:feat/oauth-dpop-bound-access-tokens

Conversation

@laurynas-jonusas

Copy link
Copy Markdown

Summary

Adds support for managing settings.oauthClient.dpop_bound_access_tokens on okta_app_oauth. This exposes DPoP-bound access token configuration for OIDC applications via the new dpop_bound_access_tokens argument. This also fixes sort of a bug, because if you were to import existing application that has DPoP as true and then for example add enduser_note field with a value, it would silently drop DPoP to false.

Changes

  • Added dpop_bound_access_tokens to the okta_app_oauth resource schema.
  • Sends the value in settings.oauthClient on create/update when configured, and preserves existing state when omitted.
  • Added acceptance coverage for create, update, omitted config preservation, import, and destroy.

Testing

TF_ACC=1 go test ./okta/services/idaas -test.v -run '^TestAccResourceOktaAppOauth_dpopBoundAccessTokens$' -timeout 10m

=== RUN   TestAccResourceOktaAppOauth_dpopBoundAccessTokens
--- PASS: TestAccResourceOktaAppOauth_dpopBoundAccessTokens (14.22s)
PASS
ok      github.com/okta/terraform-provider-okta/okta/services/idaas     15.100s

Also tested manually with a locally built binary using dev overrides. Verified that okta_app_oauth accepts dpop_bound_access_tokens, applies the value to an OAuth app, and preserves the existing value when the argument is omitted from config.

@github-actions
github-actions Bot requested a review from dhiwakar-okta May 22, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant