t1mmen / opauth-bitbucket
Opauth strategy for Bitbucket
Installs: 35
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/t1mmen/opauth-bitbucket
Requires
- php: >=5.2.0
- opauth/opauth: >=0.4.0
This package is not auto-updated.
Last update: 2025-09-28 00:45:23 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 ID
andClient Secret
. -
Direct user to
http://path_to_opauth/bitbucket
to 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)