Skip to content

Commit

Permalink
Merge pull request #24 from Wingless-Archangel/update-documentation
Browse files Browse the repository at this point in the history
Update authentication Documentation
  • Loading branch information
robertoaloi authored Feb 13, 2021
2 parents 4da5ed7 + a1ba1d0 commit c4d6e0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,20 @@ docker run --rm --name erlangbuilder -v ${PWD}:/bec -w=/bec erlang rebar3 escr

## Sample BitBucket Configuration

BEC supports both Basic Authentication (via username/password) and Token-Based Authentication (preferred).
If both a `token` and a `username/password` pair are provided, the token will take precedence.

Set BitBucket url and credentials in `bitbucket.config`:

```
{bitbucket_url, "https://my.bitbucket.server"}.
{bitbucket_username, "first.last"}.
{bitbucket_password, "password"}.
{bitbucket_token, "someToken"}.
```

Please follow [this](https://confluence.atlassian.com/bitbucketserver072/personal-access-tokens-1005335924.html#Personalaccesstokens-Generatingpersonalaccesstokens) guide if you want to generate the token to authenticate.

## Sample Repo Configuration

You can find a sample configuration file for a custom BitBucket repo
Expand Down

0 comments on commit c4d6e0a

Please sign in to comment.