omniauth-pam 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +20 -0
- data/README.md +32 -17
- data/lib/omniauth-pam/version.rb +1 -1
- data/omniauth-pam.gemspec +15 -14
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8fbb686758b548b9cb92beff12b856f296917bd
|
4
|
+
data.tar.gz: 66eeb3d1ae5cfab7b1c081c5b5ef3512920fac2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
1
|
+
# omniauth-pam
|
2
2
|
|
3
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
28
|
+
```ruby
|
29
|
+
require 'omniauth'
|
30
|
+
require 'omniauth-pam'
|
15
31
|
|
16
|
-
|
17
|
-
|
32
|
+
use Rack::Session::Cookie
|
33
|
+
use OmniAuth::Strategies::PAM
|
18
34
|
|
19
|
-
|
35
|
+
get '/auth/:provider/callback' do
|
36
|
+
puts request.env['omniauth.auth']
|
37
|
+
end
|
38
|
+
```
|
20
39
|
|
21
|
-
##
|
40
|
+
## Author
|
22
41
|
|
23
|
-
|
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
|
|
data/lib/omniauth-pam/version.rb
CHANGED
data/omniauth-pam.gemspec
CHANGED
@@ -1,24 +1,25 @@
|
|
1
|
-
#
|
2
|
-
|
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 =
|
5
|
+
s.name = 'omniauth-pam'
|
7
6
|
s.version = OmniAuth::PAM::VERSION
|
8
|
-
s.authors = [
|
9
|
-
s.email = [
|
10
|
-
s.homepage =
|
11
|
-
s.
|
12
|
-
s.
|
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 =
|
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 = [
|
20
|
+
s.require_paths = ['lib']
|
20
21
|
|
21
|
-
s.add_runtime_dependency
|
22
|
-
s.add_runtime_dependency
|
23
|
-
s.add_runtime_dependency
|
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.
|
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-
|
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:
|
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: []
|