Skip to content

Conversation

Copy link

Copilot AI commented Dec 22, 2025

The Azure OpenAI Authenticator previously only supported credential configuration via settings. This adds an optional credential input port to enable OAuth authentication and integration with the KNIME secret store and credential framework, matching the existing OpenAI Authenticator implementation.

Changes

  • Port Object Spec: Extended AzureOpenAIAuthenticationPortObjectSpec to accept and serialize credential_spec parameter, passing it through to parent class
  • Authenticator Node: Added optional credential input port with conditional UI behavior—credential settings are hidden when port is connected
  • Credential Resolution: Updated _verify_settings() and create_spec() to use credential from port object when available, falling back to credential settings
  • Validation: Added schema validation for credential port objects (Bearer-only authentication)

Usage

Users can now authenticate via credential port:

# Traditional approach (still works)
Azure OpenAI Authenticator (configured with workflow credentials)
  → Azure OpenAI LLM Selector

# New approach with credential port
Credentials / Secret StoreAzure OpenAI Authenticator (credential settings hidden)
    → Azure OpenAI LLM Selector

The implementation follows the established pattern from OpenAIAuthenticator, ensuring consistent behavior across both authenticator nodes.

Original prompt

Add an optional credential input port to the Azure OpenAI Authenticator, so that it can be used in combination with the secret store and KNIME credential framework. See the OpenAI Authenticator as a reference implementation, which already has gone through this change.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Added credential port type definition and import of knext.extension.nodes
- Added _has_auth_port helper function to check if credential port is connected
- Added optional credential input port to AzureOpenAIAuthenticator node
- Updated configure and execute methods to accept optional credential parameter
- Added rule to hide credential settings when credential port is connected
- Updated AzureOpenAIAuthenticationPortObjectSpec to accept and handle credential_spec
- Updated serialize/deserialize methods to properly handle credential_spec
- Updated _verify_settings to use credential_spec when provided
- Updated create_spec to pass credential_spec parameter
- Updated node documentation to mention OAuth authentication support

Co-authored-by: AtR1an <12174376+AtR1an@users.noreply.github.com>
Copilot AI changed the title [WIP] Add optional credential input port to Azure OpenAI Authenticator Add optional credential input port to Azure OpenAI Authenticator Dec 22, 2025
Copilot AI requested a review from AtR1an December 22, 2025 13:14
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.

2 participants