library opauth-bitbucket
Opauth strategy for Bitbucket
t1mmen/opauth-bitbucket
Opauth strategy for Bitbucket
- Friday, April 29, 2016
- by t1mmen
- Repository
- 1 Watchers
- 0 Stars
- 28 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Opauth-Bitbucket
[Opauth][1] strategy for Bitbucket authentication., (*1)
Implemented based on https://confluence.atlassian.com/bitbucket/oauth-on-bitbucket-cloud-238027431.html, (*2)
Getting started
-
Install Opauth-Bitbucket:, (*3)
Using git:, (*4)
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:, (*5)
{
"require": {
"t1mmen/opauth-bitbucket": "*"
}
}
Then run composer install., (*6)
-
Create Bitbucket application at https://bitbucket.org/account under "Oauth" in left menu. This implementation requires the "email" scope set., (*7)
-
Configure Opauth-Bitbucket strategy with at least Client ID and Client Secret., (*8)
-
Direct user to http://path_to_opauth/bitbucket to authenticate, (*9)
Strategy configuration
Required parameters:, (*10)
<?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), (*11)