From e747aad2b601974c4e83467c53e526330f67697a Mon Sep 17 00:00:00 2001 From: Marley <55280588+marleypowell@users.noreply.github.com> Date: Fri, 28 Apr 2023 12:41:47 +0100 Subject: [PATCH] docs: added additional documentation for azure devops git provider (#6923) Co-authored-by: Ben Potter Co-authored-by: Atif Ali --- docs/admin/git-providers.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/admin/git-providers.md b/docs/admin/git-providers.md index 2ab4cac133..9cce4236a7 100644 --- a/docs/admin/git-providers.md +++ b/docs/admin/git-providers.md @@ -41,6 +41,20 @@ CODER_GITAUTH_0_AUTH_URL="https://github.example.com/login/oauth/authorize" CODER_GITAUTH_0_TOKEN_URL="https://github.example.com/login/oauth/access_token" ``` +### Azure DevOps + +Azure DevOps requires the following environment variables: + +```console +CODER_GITAUTH_0_ID="primary-azure-devops" +CODER_GITAUTH_0_TYPE=azure-devops +CODER_GITAUTH_0_CLIENT_ID=xxxxxx +# Ensure this value is your "Client Secret", not "App Secret" +CODER_GITAUTH_0_CLIENT_SECRET=xxxxxxx +CODER_GITAUTH_0_AUTH_URL="https://app.vssps.visualstudio.com/oauth2/authorize" +CODER_GITAUTH_0_TOKEN_URL="https://app.vssps.visualstudio.com/oauth2/token" +``` + ### Self-managed git providers Custom authentication and token URLs should be