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

Full channel API contract as JSON in okta_inline_hook resource #2241

Merged
merged 2 commits into from
Mar 7, 2025

Conversation

monde
Copy link
Collaborator

@monde monde commented Mar 6, 2025

Expose full channel API contract in okta_inline_hook resource as channel_json so that OAuth auth values and header values can be set when the inline hook is managed.

Includes Acceptance Test

Example

resource "okta_inline_hook" "example" {
  name    = "example"
  version  = "1.0.0"
  type     = "com.okta.saml.tokens.transform"

  status   = "ACTIVE"

  channel_json = <<JSON
{
        "type": "OAUTH",
        "version": "1.0.0",
        "config": {
            "headers": [
                {
                    "key": "Field 1",
                    "value": "Value 1"
                },
                {
                    "key": "Field 2",
                    "value": "Value 2"
                }
            ],
            "method": "POST",
            "authType": "client_secret_post",
            "uri": "https://example.com/service",
            "clientId": "abc123",
            "clientSecret": "fake-secret",
            "tokenUrl": "https://example.com/token",
            "scope": "api"
        }
}
JSON
}

Closes #2190

monde added 2 commits March 6, 2025 12:10
`channel_json` so that OAuth auth values and header values can be set
when the inline hook is managed.

Closes #2190
@monde monde merged commit a91877c into master Mar 7, 2025
3 checks passed
@monde monde deleted the issue_2190_okta_inline_hook_channel_json branch March 7, 2025 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants