Skip to content

bug: Creating a workspace for another user blocks on the creator's external_auth #17997

Open
@sreya

Description

@sreya

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Currently if you want to create a workspace for another user via the CLI that requires external auth it will block until the creator (as opposed to the owner of the workspace) authenticates.

Expected Behavior

We should be querying whether the owner of the workspace is authenticated with the required external auth providers.

Steps to Reproduce

  1. Login as a user who can create workspaces for another user
  2. Create (or use) a template that has a required external auth provider
  3. Create a user testuser
  4. Authenticate with the external auth provider as testuser
  5. Ensure you are not authenticated as the user in step 1
  6. coder create -y testuser/workspace -t mytemplate
  7. Observe blocking behavior

Environment

  • Coder version: main

Metadata

Metadata

Assignees

Labels

s2Broken use cases or features (with a workaround). Only humans may set this.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions