OpenamGitlab
Integration of Gitlab with OpenAM using OpenamAuth
Installation
Add this line to your Gitlab's Gemfile
:
gem 'openam_gitlab'
And then execute:
$ bundle
Usage
Install the gem (as described above)
Create migration file to add token column to User table
rails generate migration add_token_to_users
migration example:
class AddTokenToUsers < ActiveRecord::Migration
def change
add_column :users, :token, :string
end
end
Create a file openam_config.rb
under config/initializers
# config/initializers/openam_config.rb
OpenamConfig.config do
openam_url <Path to your openam server>
end
Contributing
- Fork it ( https://github.com/[my-github-username]/openam_gitlab/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