Add this line to your application's Gemfile:
gem 'omniauth-phabricator', :github => 'zencodex/omniauth-phabricator'
And then execute:
$ bundle
vi /srv/gitlab/config/gitlab.rb
gitlab_rails['omniauth_allow_single_sign_on'] = ['phabricator']
gitlab_rails['omniauth_providers'] = [
{
"name" => "phabricator",
'app_id' => 'PHID-OASC-ro6q5je6pbekr3ivo2ii',
'app_secret' => 'ujacvgq7rpsbqztifkuobwobkgrnlmmg',
"args" => {
client_options: {
'site' => 'https://team.bookcapt.com', # including port if necessary
'authorize_url' => '/oauthserver/auth/',
'token_url' => '/oauthserver/token/'
}
}
...
]
require "omniauth/phabricator"
class MyRackApp
use OmniAuth::Builder do
provider :phabricator, "<My-Phabricator-Client-Id>", "<My-Phabricator-Client-Secret>",
:client_options => {:site => 'https://phabricator.example.com', :authorize_url => 'https://phabricator.example.com/oauthserver/auth/'}
end
end
- Fork it ( https://github.com/[my-github-username]/omniauth-phabricator/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request