Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Microsoft DevAzure Server notes #2851

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ pass:[<!-- vale RedHat.Spelling = YES -->]
. Set up the Microsoft Azure DevOps Services OAuth App (OAuth 2.0).
. Apply the Microsoft Azure DevOps Services OAuth App Secret.

[IMPORTANT]
OAuth 2.0 isn't supported on Azure DevOps Server, see link:https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/oauth?view=azure-devops[the documentation page].

include::partial$proc_setting-up-the-microsoft-azure-devops-services-oauth-app.adoc[leveloffset=+1]

include::partial$proc_applying-the-microsoft-azure-devops-services-oauth-app-secret.adoc[leveloffset=+1]
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type: Opaque
<1> Your {prod-short} user ID.
<2> The Git provider name: `github` or `gitlab` or `bitbucket-server` or `azure-devops`.
<3> The Git provider URL.
<4> This line is only applicable to `azure-devops`: your Git provider user organization.
<4> This line is only applicable to `azure-devops`: your Git provider user organization, or collection if Azure DevOps Server is used.

. Visit `pass:c,a,q[{prod-url}]/api/kubernetes/namespace` to get your {prod-short} user namespace as `name`.

Expand Down Expand Up @@ -117,6 +117,21 @@ EOF
----
====

[IMPORTANT]
====
If you are using Azure DevOps Server, you must also modify the xref:mounting-git-configuration.adoc[workspace's
gitconfig] with the following section:
```
[http]
extraheader = "Authorization: Basic <base64-encoded(:personal-access-token)>"
```
To generate the key-value pair, use the following command:
```
echo -n "extraheader = \"Authorization: Basic "$(printf ":%s" <personal access token> | base64)\"
```
see link:https://learn.microsoft.com/en-us/azure/devops/repos/git/auth-overview?view=azure-devops&tabs=Linux#personal-access-tokens[the documentation page] for more information.
====

.Verification

. xref:starting-a-workspace-from-a-git-repository-url.adoc[Start a new workspace by using the URL of a remote Git repository] that the Git provider hosts.
Expand Down
Loading