omniauth-pam 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af3fd0f82b596952bb68609a7a6a58fff1cdc374
4
- data.tar.gz: ea13e98427607e8eda92559493577f21fbcb8653
3
+ metadata.gz: b8fbb686758b548b9cb92beff12b856f296917bd
4
+ data.tar.gz: 66eeb3d1ae5cfab7b1c081c5b5ef3512920fac2e
5
5
  SHA512:
6
- metadata.gz: 74fa66c8a34ee8377212413e15c7cdefb3efd74c5408309b623a6df66879e82127c9bd2cbb5dccfe607826f3b9e0508052246b083acc77cea977fcd6f9e352ec
7
- data.tar.gz: 475d096738a732439c3df8e72dc4acb5d9ccf85583918cd056b91f071dbdc6d3d080b1af67dd04d5b2c0a0b9490d427b8459d28eac78a486ac1fc60440fa74f2
6
+ metadata.gz: 3db044f0ae0813b5bd3e43b803ebeb4dd74a5e2c32860f1968a6da423382ba01aedcf40a17bf01b1123ca95ab41f946152b1f6de72f78c93dd2f2a030037c592
7
+ data.tar.gz: 985c0e077c041bd3668a3f5beb85ace4fa31e1f16e5680af758148cf6b6f9432fd9a940ff2126a7023b08fe7d4d383a9070a8ac1909aedc66eca749d6c07bb64
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 Nick Charlton
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,30 +1,45 @@
1
- # OmniAuth PAM
1
+ # omniauth-pam
2
2
 
3
- Allows you to authenticate against PAM using OmniAuth.
3
+ An OmniAuth strategy to allow you to authentication against Pluggable Authentication
4
+ Modules (PAM).
5
+
6
+ ## Installation
7
+
8
+ Add `omniauth-pam` to your Gemfile, or:
9
+
10
+ ```
11
+ gem install omniauth-pam
12
+ ```
4
13
 
5
14
  ## Usage
6
15
 
7
- use OmniAuth:Strategies::PAM
16
+ It has been tested under Ruby 1.9 and 2.0 on both Debian Wheezy (7.0) and Ubuntu
17
+ Precise (12.04). [Ruby 1.8 can be made to work with small adjustments][oldruby].
18
+ Under both Debian and Ubuntu you'll need the `libpam0g-dev` package to compile the
19
+ `rpam` dependency.
20
+
21
+ The included `Vagrantfile` provides a Debian Wheezy environment and the `example/`
22
+ directory provides a working Sinatra example.
23
+
24
+ ### Simple Sinatra Example
8
25
 
9
- There are no configuration options. It's been tested under Debian 6.0 (Squeeze)
10
- and Ruby 1.9.3, but there's no reason why it won't work anywhere which doesn't
11
- have PAM correctly configured.
12
- _Note: The above is assumed for Sinatra, check the OmniAuth docs for Rails, et. al. usage._
26
+ But, getting it working is as simple as this:
13
27
 
14
- Then navigate to '/auth/pam'.
28
+ ```ruby
29
+ require 'omniauth'
30
+ require 'omniauth-pam'
15
31
 
16
- On Debian/Ubuntu you will need the `libpam0g-dev` package to compile the [rpam][]
17
- gem. YMMV with others.
32
+ use Rack::Session::Cookie
33
+ use OmniAuth::Strategies::PAM
18
34
 
19
- This strategy only supports Ruby 1.9. [Read here about 1.8 support][oldruby].
35
+ get '/auth/:provider/callback' do
36
+ puts request.env['omniauth.auth']
37
+ end
38
+ ```
20
39
 
21
- ## Credits
40
+ ## Author
22
41
 
23
- Originally hacked together by [Nick Charlton][nick], with modifications by
24
- [Jaakko Kantojärvi][jaakko] for GitLab support. Licensed under the MIT license.
42
+ Copyright (c) 2013 Nick Charlton and contributors. MIT Licensed.
25
43
 
26
- [rpam]: https://github.com/canweriotnow/rpam-ruby19
27
44
  [oldruby]: http://nickcharlton.net/post/pam-for-omniauth
28
- [nick]: https://github.com/nickcharlton
29
- [jaakko]: https://github.com/raphendyr
30
45
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module PAM
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
@@ -1,24 +1,25 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "omniauth-pam/version"
1
+ # encoding: UTF-8
2
+ require File.expand_path('../lib/omniauth-pam/version', __FILE__)
4
3
 
5
4
  Gem::Specification.new do |s|
6
- s.name = "omniauth-pam"
5
+ s.name = 'omniauth-pam'
7
6
  s.version = OmniAuth::PAM::VERSION
8
- s.authors = ["Nick Charlton"]
9
- s.email = ["hello@nickcharlton.net"]
10
- s.homepage = "https://github.com/nickcharlton/omniauth-pam"
11
- s.summary = %q{A PAM strategy for OmniAuth.}
12
- s.description = %q{A PAM strategy for OmniAuth.}
7
+ s.authors = ['Nick Charlton']
8
+ s.email = ['hello@nickcharlton.net']
9
+ s.homepage = 'https://github.com/nickcharlton/omniauth-pam'
10
+ s.license = 'MIT'
11
+ s.summary = 'A PAM strategy for OmniAuth.'
12
+ s.description = 'An OmniAuth strategy to allow you to authenticate '\
13
+ 'against Pluggable Authentication Modules (PAM).'
13
14
 
14
- s.rubyforge_project = "omniauth-pam"
15
+ s.rubyforge_project = 'omniauth-pam'
15
16
 
16
17
  s.files = `git ls-files`.split("\n")
17
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
- s.require_paths = ["lib"]
20
+ s.require_paths = ['lib']
20
21
 
21
- s.add_runtime_dependency "omniauth", '~> 1.0'
22
- s.add_runtime_dependency "rpam-ruby19", '~> 1.2.1'
23
- s.add_runtime_dependency "etc"
22
+ s.add_runtime_dependency 'omniauth', '~> 1.0'
23
+ s.add_runtime_dependency 'rpam-ruby19', '~> 1.2.1'
24
+ s.add_runtime_dependency 'etc'
24
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-pam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Charlton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-09 00:00:00.000000000 Z
11
+ date: 2013-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -52,7 +52,8 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: A PAM strategy for OmniAuth.
55
+ description: An OmniAuth strategy to allow you to authenticate against Pluggable Authentication
56
+ Modules (PAM).
56
57
  email:
57
58
  - hello@nickcharlton.net
58
59
  executables: []
@@ -61,6 +62,7 @@ extra_rdoc_files: []
61
62
  files:
62
63
  - .gitignore
63
64
  - Gemfile
65
+ - LICENSE
64
66
  - README.md
65
67
  - Rakefile
66
68
  - Vagrantfile
@@ -74,7 +76,8 @@ files:
74
76
  - lib/omniauth/strategies/pam.rb
75
77
  - omniauth-pam.gemspec
76
78
  homepage: https://github.com/nickcharlton/omniauth-pam
77
- licenses: []
79
+ licenses:
80
+ - MIT
78
81
  metadata: {}
79
82
  post_install_message:
80
83
  rdoc_options: []