Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

iamriajul
Copy link

This feature allows users to bypass authentication entirely by setting AUTH_DISABLED=true in their environment variables.

Changes:

  • Added AUTH_DISABLED environment variable support
  • Updated .env.example with AUTH_DISABLED=false default
  • Modified authentication middleware to skip auth when disabled
  • Updated WebSocket authentication to handle disabled mode
  • Updated frontend components to handle auth disabled state
  • Added proper status responses for auth disabled mode

When AUTH_DISABLED=true:

  • All API endpoints become accessible without authentication
  • WebSocket connections work without tokens
  • Frontend skips login/setup forms and provides direct access
  • Mock user object (id: 1, username: 'admin') used for compatibility

🤖 Generated with Claude Code

This feature allows users to bypass authentication entirely by setting
AUTH_DISABLED=true in their environment variables.

Changes:
- Added AUTH_DISABLED environment variable support
- Updated .env.example with AUTH_DISABLED=false default
- Modified authentication middleware to skip auth when disabled
- Updated WebSocket authentication to handle disabled mode
- Updated frontend components to handle auth disabled state
- Added proper status responses for auth disabled mode

When AUTH_DISABLED=true:
- All API endpoints become accessible without authentication
- WebSocket connections work without tokens
- Frontend skips login/setup forms and provides direct access
- Mock user object (id: 1, username: 'admin') used for compatibility

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@iamriajul
Copy link
Author

Why?

This is deployed as Coder App, and Coder generates sub domains for each coder app deployed which secured by default using Coder's authentication mechanism, so we don't need double authentication.

Background

I installed the Claude Code UI in Coder Workspace as a module, So people can interact with their own workspace's Claude Code on the Go.

@iamriajul iamriajul marked this pull request as ready for review August 24, 2025 06:03
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.

1 participant