Azure DevOps Entra

We have followed the documented guidance in terms of setting up the external provider and including it in our template. https://coder.com/docs/admin/external-auth But we are still prompted for username and password when trying to git clone in a workspace from ADO. We can’t add the public ssh key to ADO since that old platform only allows for rsa 256 and 512, which coder does not support. What would we do to get evergreen, self refreshing git credentials in our workspaces without having the end user do manual configuration everytime they spin up a new workspace? I can’t find any good playbooks on this anywhere it seems.
External Auth for Git Providers | Coder Docs
Learn about external authentication options in Coder. Configure and manage external provider connections for your development environment.
7 Replies
Codercord
Codercord4mo ago
Codercord
Codercord4mo ago
<#1385640389486182470>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
matifali
matifali4mo ago
Hi, Can you share if the urls you use are https or git? Coder's external works by invoking GIT_ASK_PASS which automatically handles the auth it works for https based git operations.
matifali
matifali4mo ago
Please check this section to see how it works. https://coder.com/docs/admin/external-auth#oauth-external-auth
External Auth for Git Providers | Coder Docs
Learn about external authentication options in Coder. Configure and manage external provider connections for your development environment.
Lasse Borly Grønbæk
Both https and ssh does not work. Ssh due to the public key not being one that ADO accepts and https prompt for password and username even though the workspace is authenticated It’s with entra id aka. not the old ADO I get that I could manually assign the access_token during build of workspace but would it not just run out? It seems like there is a env variable missing from the docs. The auth token url is also required with entra, not only the legacy ADO setup. Will do a PR later. But consider this closed.
matifali
matifali4mo ago
Thanks Please ping me for a review.
Codercord
Codercord3mo ago
@Phorcys closed the thread.

Did you find this page helpful?