docs: code format bitbucket settings example (#2312)
This commit is contained in:
parent
60caca0950
commit
1c3035f4dc
@ -149,13 +149,15 @@ With Bitbucket's Implicit Grant, users can authenticate with Bitbucket directly
|
|||||||
1. Follow the authentication provider setup steps in the [Netlify docs](https://www.netlify.com/docs/authentication-providers/#using-an-authentication-provider), make sure you allow 'Account/Read' and 'Repository/Write'.
|
1. Follow the authentication provider setup steps in the [Netlify docs](https://www.netlify.com/docs/authentication-providers/#using-an-authentication-provider), make sure you allow 'Account/Read' and 'Repository/Write'.
|
||||||
2. Bitbucket gives you a **Key**. Copy this Key and enter it in your Netlify CMD `config.yml` file, along with the following settings:
|
2. Bitbucket gives you a **Key**. Copy this Key and enter it in your Netlify CMD `config.yml` file, along with the following settings:
|
||||||
|
|
||||||
|
```yaml
|
||||||
backend:
|
backend:
|
||||||
name: bitbucket
|
name: bitbucket
|
||||||
repo: owner-name/repo-name
|
repo: owner-name/repo-name
|
||||||
branch: default
|
branch: default
|
||||||
auth_type: implicit
|
auth_type: implicit
|
||||||
app_id: # The Key from your Bitbucket settings
|
app_id: # The Key from your Bitbucket settings
|
||||||
|
```
|
||||||
|
|
||||||
**Warning:** With Bitbucket implicit grant, the authentication is valid for 1 hour only. After that, the user has to login again, **which can lead to data loss** if the expiration occurs while content is being edited.
|
**Warning:** With Bitbucket implicit grant, the authentication is valid for 1 hour only. After that, the user has to login again, **which can lead to data loss** if the expiration occurs while content is being edited.
|
||||||
|
|
||||||
## Test Repo Backend
|
## Test Repo Backend
|
||||||
|
Loading…
x
Reference in New Issue
Block a user