Socket
Socket
Sign inDemoInstall

adonis-ally-bitbucket

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonis-ally-bitbucket

A Bitbucket driver of AdonisJS Ally


Version published
Maintainers
1
Created
Source

Adonis Ally Bitbucket Driver

NPM version

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

  1. Fork the repo
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'feat: Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

Keywords

FAQs

Package last updated on 04 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc