t1mmen / opauth-bitbucket
Opauth strategy for Bitbucket
Requires
- php: >=5.2.0
- opauth/opauth: >=0.4.0
This package is not auto-updated.
Last update: 2026-03-15 03:07:30 UTC
README
Opauth strategy for Bitbucket authentication.
Implemented based on https://confluence.atlassian.com/bitbucket/oauth-on-bitbucket-cloud-238027431.html
Getting started
-
Install Opauth-Bitbucket:
Using git:
cd path_to_opauth/Strategy git clone https://github.com/t1mmen/opauth-bitbucket.git bitbucket
Or, using Composer, just add this to your composer.json:
{
"require": {
"t1mmen/opauth-bitbucket": "*"
}
}
Then run composer install.
-
Create Bitbucket application at https://bitbucket.org/account under "Oauth" in left menu. This implementation requires the "email" scope set.
-
Configure Opauth-Bitbucket strategy with at least
Client IDandClient Secret. -
Direct user to
http://path_to_opauth/bitbucketto authenticate
Strategy configuration
Required parameters:
<?php 'Bitbucket' => array( 'client_id' => 'YOUR CLIENT ID', 'client_secret' => 'YOUR CLIENT SECRET' )
License
Opauth-Bitbucket is MIT Licensed Copyright © 2016 Timm Stokke (http://timm.stokke.me)