adonis-ally-bitbucket
v1.0.1 adonisjs adonis-ally adonis-bitbucket adonis-ally-bitbucket
Adonis Ally Bitbucket Driver
A Bitbucket driver for AdonisJS Ally
Getting started
1. Install the package
Install the package from your command line.
npm install --save adonis-ally-bitbucket
or
yarn add adonis-ally-bitbucket
2. Configure the package
node ace configure adonis-ally-bitbucket
3. Validate environment variables
BITBUCKET_CLIENT_ID: Env.schema.string(),
BITBUCKET_CLIENT_SECRET: Env.schema.string(),
4. Add variables to your ally configuration
const allyConfig: AllyConfig = {
// ... other drivers
bitbucket: {
driver: 'bitbucket',
clientId: Env.get('BITBUCKET_CLIENT_ID'),
clientSecret: Env.get('BITBUCKET_CLIENT_SECRET'),
callbackUrl: 'http://localhost:3333/bitbucket/callback',
},
}
Scopes
You can pass an array of scopes in your configuration, for example ['account', 'email', 'repository']
. You have a full list of scopes in the Bitbucket Oauth documentation
How it works
You can learn more about AdonisJS Ally in the documentation. And learn about the implementation in the ally-driver-boilerplate repository.
Contributing
- Fork the repo
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'feat: Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
npm i adonis-ally-bitbucket
Metadata
- MIT
- Whatever
- Ruben Moya
- released 10/4/2021