omniauth-oc_tanner 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -3
- data/lib/omniauth/oc_tanner.rb +1 -5
- data/lib/omniauth/oc_tanner/version.rb +3 -3
- data/lib/omniauth/strategies/oc_tanner.rb +1 -1
- data/omniauth-oc_tanner.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18e6621b93799ff687b95d8238ce7c7972c34530
|
4
|
+
data.tar.gz: 6cd544fa78c11ffa5b20c13ee9245cad6679f66b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: debb2d7d89a229098d55942e6d30ff6be5f873f2857d15ed512db3ddd71199e213a40cbda01813568978ea9530aa9f12b024578b9d4f00a91f8315877b7bb744
|
7
|
+
data.tar.gz: 5a19c971c3f060d4fa4161ee98afd88c18a8aea75e22dd0402dddfc902ae6fa56beb8b486aae8c0da73c324b5c43c8e88211b48cbf060fa6336cd466e68b12d5
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# OmniAuth::OCTanner
|
2
2
|
|
3
|
-
|
3
|
+
This wonderful gem adds a simple provider for OAuth2 to OmniAuth so you can hit the EVE auth service with relative ease.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,30 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
### Rails applications
|
22
|
+
|
23
|
+
Create an initializer (ex: `config/initializers/omniauth.rb`) and use that to
|
24
|
+
add the OmniAuth provider to the middleware stack.
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
require 'omniauth/oc_tanner'
|
28
|
+
|
29
|
+
Rails.application.config.middleware.use(OmniAuth::Builder) do
|
30
|
+
provider :oc_tanner, 'your_client_id', 'your_client_key'
|
31
|
+
end
|
32
|
+
```
|
33
|
+
|
34
|
+
Replace `your_client_id` and `your_client_key` with your own settings and you
|
35
|
+
should be set to go. You can hit `http://your_awesome_site/auth/oc-tanner` and it should
|
36
|
+
redirect you to authenticate with EVE. Note, however, that there's nothing out
|
37
|
+
of the box to handle the callback URL (`/auth/oc-tanner/callback` by default),
|
38
|
+
so you'll need to route and handle that yourself.
|
39
|
+
|
40
|
+
Essentially, this entails processing the data that the authentication service
|
41
|
+
passes back to you via the `request.env['omniauth.auth']` variable in any
|
42
|
+
controller action. There are ample examples of this in the [OmniAuth
|
43
|
+
Documentation](https://github.com/intridea/omniauth#integrating-omniauth-into-your-application)
|
44
|
+
that can get you on the right track.
|
22
45
|
|
23
46
|
## Contributing
|
24
47
|
|
data/lib/omniauth/oc_tanner.rb
CHANGED
data/omniauth-oc_tanner.gemspec
CHANGED
@@ -5,11 +5,11 @@ require 'omniauth/oc_tanner/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "omniauth-oc_tanner"
|
8
|
-
spec.version =
|
8
|
+
spec.version = OmniAuth::OCTanner::VERSION
|
9
9
|
spec.authors = ["Corey Woodcox", "Dane Thurber"]
|
10
10
|
spec.email = ["corey.woodcox@octanner.com", "dane.thurber@octanner.com"]
|
11
11
|
spec.description = %q{OAuth2 Provider for OC Tanner's EVE authentication API}
|
12
|
-
spec.summary = %q{This wonderful gem
|
12
|
+
spec.summary = %q{This wonderful gem adds a simple provider for OAuth2 to OmniAuth so you can hit the EVE auth service with relative ease.}
|
13
13
|
spec.homepage = "https://github.com/octanner/omniauth-oc_tanner"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-oc_tanner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Woodcox
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth-oauth2
|
@@ -93,6 +93,6 @@ rubyforge_project:
|
|
93
93
|
rubygems_version: 2.0.3
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
|
-
summary: This wonderful gem
|
97
|
-
the EVE auth service with relative ease.
|
96
|
+
summary: This wonderful gem adds a simple provider for OAuth2 to OmniAuth so you can
|
97
|
+
hit the EVE auth service with relative ease.
|
98
98
|
test_files: []
|