Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: allow other methods of authenticating to an External Auth provider #16821

Labels
customer-requestedFeatures requested by enterprise customers. Only humans may set this.
@jatcod3r

Description

@jatcod3r

It would be nice to add the ability to authenticate to a provider through the Coder CLI or REST API. Going through the Coder Web UI sometimes confusing, especially for new users onboarding to the platform or are re-authenticating. I'm looking for something similar to howcoder login automatically opens the Coder/cli-auth page, and from there I would either follow the login flow or be shown that I'm already authenticated.

When you're authenticating with an External Auth provider, it already does this to some extent where it'll automatically open/external-auth/<provider-id>, then redirect me to the external provider's login page. The CLI could be something likecoder external-auth login <provider-id>.

UPDATE: found this by accident, but it looks like this does already happen within a workspace. Didn't catch this until I unlinked my external auth and noticed the env varsGIT_ASKPASS andGIT_SSH_COMMANDS referenced the Coder CLI:

coder@coder-d581e5e7-5181-49ab-9ec5-98c9d66cf057-589d47c458-glfzc:~$ env | grep "GIT"GIT_SSH_COMMAND=/tmp/coder.snW6A0/coder gitssh --GIT_ASKPASS=/tmp/coder.snW6A0/codercoder@coder-d581e5e7-5181-49ab-9ec5-98c9d66cf057-589d47c458-glfzc:~$ git clone https://github.com/****/coder-templates.gitCloning into 'coder-templates'...Open the following URL to authenticate with Git:https://coder.*****.****/external-auth/github

Is it possible to do this outside of a workspace for a specific provider?

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-requestedFeatures requested by enterprise customers. Only humans may set this.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp