Skip to content

Password containing colon (:) rejected by server #29575

@neriousy

Description

@neriousy

Description

Basic auth passwords containing a colon (:) were rejected by the server. The auth decoder split decoded credentials on every colon and required exactly two parts, so a valid credential like opencode:sec:ret was treated as malformed instead of username opencode and password sec:ret.

Plugins

none

OpenCode version

latest

Steps to reproduce

  1. Setup a password with a colon : inside
  2. Try to auth

Screenshot and/or share link

No response

Operating System

Windows / Mac / Ubuntu

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions