Skip to content

Conversation

@saileshwar-skyflow
Copy link
Collaborator

Why

  • The current SDK restricts custom token endpoints, which blocks Bring Your Own Cloud (BYOC) integrations.

Outcome

  • Added a Custom Token URI option to enable BYOC support while maintaining full backward compatibility.

@github-actions
Copy link

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link

Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.

@github-actions
Copy link

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link

Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for custom token URIs to enable Bring Your Own Cloud (BYOC) integrations while maintaining backward compatibility. The implementation allows users to optionally specify a custom token endpoint through the tokenUri field in credentials.

Changes:

  • Added tokenUri field to the Credentials class with getter/setter methods
  • Updated token generation logic in BearerToken and SignedDataTokens to support custom token URIs with validation
  • Enhanced error messaging for invalid token URI scenarios
  • Added comprehensive test coverage for various token URI scenarios (valid, null, empty, invalid, HTTP/HTTPS)

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/main/java/com/skyflow/config/Credentials.java Added tokenUri field with getter/setter methods
src/main/java/com/skyflow/utils/Utils.java Updated bearer token generation to conditionally use custom tokenUri
src/main/java/com/skyflow/utils/validations/Validations.java Added validation for tokenUri format
src/main/java/com/skyflow/serviceaccount/util/BearerToken.java Implemented tokenUri override logic in bearer token generation
src/main/java/com/skyflow/serviceaccount/util/SignedDataTokens.java Implemented tokenUri override logic in signed data token generation
src/main/java/com/skyflow/errors/ErrorMessage.java Updated error message for invalid token URI
src/test/java/com/skyflow/utils/UtilsTests.java Added tests for tokenUri handling in Utils class
src/test/java/com/skyflow/serviceaccount/util/BearerTokenTests.java Added comprehensive tests for bearer token with custom tokenUri
src/test/java/com/skyflow/serviceaccount/util/SignedDataTokensTests.java Added comprehensive tests for signed data tokens with custom tokenUri
src/test/java/com/skyflow/SkyflowTests.java Added tests for Skyflow client initialization with custom tokenUri

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link

Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.

@saileshwar-skyflow saileshwar-skyflow changed the base branch from main to release/26.1.4 January 27, 2026 12:19
@saileshwar-skyflow saileshwar-skyflow merged commit a79cb21 into release/26.1.4 Jan 27, 2026
5 of 6 checks passed
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.

4 participants