Open
Description
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
- Login as a user who can create workspaces for another user
- Create (or use) a template that has a required external auth provider
- Create a user
testuser
- Authenticate with the external auth provider as
testuser
- Ensure you are not authenticated as the user in
step 1
coder create -y testuser/workspace -t mytemplate
- Observe blocking behavior
Environment
- Coder version: main