File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,14 @@ To authenticate towards a Git repository over HTTPS using bearer token
139139authentication (in other words : using a `Authorization: Bearer` header), the referenced
140140Secret is expected to contain the token in `.data.bearerToken`.
141141
142+ **Note:** If you are looking to use OAuth tokens with popular servers (e.g.
143+ [GitHub](https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api?apiVersion=2022-11-28#authenticating-with-a-token-generated-by-an-app),
144+ [Bitbucket](https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/),
145+ [GitLab](https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html#clone-using-a-token)),
146+ you should use basic access authentication instead. These servers use basic HTTP
147+ authentication, with the OAuth token as the password. Check the documentation of
148+ your Git server for details.
149+
142150` ` ` yaml
143151---
144152apiVersion: v1
Original file line number Diff line number Diff line change @@ -140,6 +140,14 @@ To authenticate towards a Git repository over HTTPS using bearer token
140140authentication (in other words : using a `Authorization: Bearer` header), the referenced
141141Secret is expected to contain the token in `.data.bearerToken`.
142142
143+ **Note:** If you are looking to use OAuth tokens with popular servers (e.g.
144+ [GitHub](https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api?apiVersion=2022-11-28#authenticating-with-a-token-generated-by-an-app),
145+ [Bitbucket](https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/),
146+ [GitLab](https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html#clone-using-a-token)),
147+ you should use basic access authentication instead. These servers use basic HTTP
148+ authentication, with the OAuth token as the password. Check the documentation of
149+ your Git server for details.
150+
143151` ` ` yaml
144152---
145153apiVersion: v1
You can’t perform that action at this time.
0 commit comments