Commit d67c7d4938b1f7717f0f13de1e5d3181781efb2c

Authored by Thiago Ribeiro
1 parent 2067e717

Update authors and README and remove unused cookie

1 # Omniath Remote User 1 # Omniath Remote User
2 2
3 The Omniauth Remote User gem provides a way for application to utilize a authentication with remote user HTTP header. 3 The Omniauth Remote User gem provides a way for application to utilize a authentication with remote user HTTP header.
  4 +
  5 +# Omniauth Gitlab Remote User
  6 +
  7 +This gem provides authentication of remote users in gitlab.
  8 +
  9 +# Instalation
  10 +
  11 +Include in you gitlab Gemfile
  12 +
  13 +```ruby
  14 +gem "omniauth-remote-user", :git => "git@beta.softwarepublico.gov.br:softwarepublico/omniauth-remote-user.git"
  15 +```
  16 +Then run `bundle install` from the command line:
  17 +
  18 + bundle install
lib/omniauth/strategies/remote_user.rb
@@ -4,7 +4,6 @@ module OmniAuth @@ -4,7 +4,6 @@ module OmniAuth
4 4
5 include OmniAuth::Strategy 5 include OmniAuth::Strategy
6 6
7 - option :cookie, 'rack.session'  
8 option :cookie, '_gitlab_session' 7 option :cookie, '_gitlab_session'
9 option :internal_cookie, '_remote_user' 8 option :internal_cookie, '_remote_user'
10 9
omniauth-remote-user.gemspec
@@ -14,9 +14,9 @@ Gem::Specification.new do |gem| @@ -14,9 +14,9 @@ Gem::Specification.new do |gem|
14 gem.version = Omniauth::RemoteUser::VERSION 14 gem.version = Omniauth::RemoteUser::VERSION
15 gem.description = %q{Authentication with Remote-User HTTP header for Omniauth.} 15 gem.description = %q{Authentication with Remote-User HTTP header for Omniauth.}
16 gem.summary = gem.description 16 gem.summary = gem.description
17 - gem.email = ['kanashiro.duarte@gmail.com', 'thiagitosouza@gmail.com', 'rodrigosiqueiramelo@gmail.com'] 17 + gem.email = ['kanashiro.duarte@gmail.com', 'thiagitosouza@gmail.com', 'rodrigosiqueiramelo@gmail.com','macartur.sc@gmail.com','Antonio Terceiro']
18 gem.homepage = 'http://beta.softwarepublico.gov.br/gitlab/softwarepublico/omiauth-remote-user' 18 gem.homepage = 'http://beta.softwarepublico.gov.br/gitlab/softwarepublico/omiauth-remote-user'
19 - gem.authors = ['Lucas Kanashiro', 'Thiago Ribeiro', 'Rodrigo Siqueira'] 19 + gem.authors = ['Lucas Kanashiro', 'Thiago Ribeiro', 'Rodrigo Siqueira','Macartur Sousa', 'Antonio Terceiro']
20 gem.require_paths = %w(lib) 20 gem.require_paths = %w(lib)
21 gem.files = `git ls-files -z`.split("\x0").reject {|f| f.start_with?('spec/')} 21 gem.files = `git ls-files -z`.split("\x0").reject {|f| f.start_with?('spec/')}
22 gem.test_files = `git ls-files -- {test,spec,feature}/*`.split("\n") 22 gem.test_files = `git ls-files -- {test,spec,feature}/*`.split("\n")