Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

feat: add basic auth and query parameter parsing to OpenCodeService#15

Open
ajoslin wants to merge 1 commit into
DRNKNDev:mainfrom
ajoslin:basic-auth
Open

feat: add basic auth and query parameter parsing to OpenCodeService#15
ajoslin wants to merge 1 commit into
DRNKNDev:mainfrom
ajoslin:basic-auth

Conversation

@ajoslin

@ajoslin ajoslin commented Jul 28, 2025

Copy link
Copy Markdown

Don't want my codebase public. This adds parsing for the baseURL to extract basic authentication credentials and query parameters.

Parse baseURL to extract basic authentication credentials and query parameters, automatically converting them to appropriate SDK options for seamless authentication.

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>
@DRNKNMaster

Copy link
Copy Markdown
Contributor

How are you planning to add Basic Auth to your Opencode API? I believe they are not supported yet.

Parsing credentials ( username and password) from query parameters could mislead users. It needs to provide an additional form UI for the credentials. But until official authentication is added to the API, I recommend using a private tunnel to securely expose your Opencode instance.

@ajoslin

ajoslin commented Jul 29, 2025

Copy link
Copy Markdown
Author

How are you planning to add Basic Auth to your Opencode API? I believe they are not supported yet.

Parsing credentials ( username and password) from query parameters could mislead users. It needs to provide an additional form UI for the credentials. But until official authentication is added to the API, I recommend using a private tunnel to securely expose your Opencode instance.

I’ve exposed it via an ngrok tunnel with basic auth.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants