omniauth-oc_tanner 0.1.0 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58644cda12e5298c37e47f323d3325a3da467f9d
4
- data.tar.gz: 88f9fa9e44e0929404e1eed667f253b981765d36
3
+ metadata.gz: 18e6621b93799ff687b95d8238ce7c7972c34530
4
+ data.tar.gz: 6cd544fa78c11ffa5b20c13ee9245cad6679f66b
5
5
  SHA512:
6
- metadata.gz: 2f1009525e052760c75c36e50c371546ecec10ad3296c56d4f0a1df4daf101ff3a92f98b3a3930f90751382b9dd06652300b619e481c0b82eca1e577df2c6865
7
- data.tar.gz: db83e84438559db1f5831aa4212dfa112e30c3d2fec73c34338d98cd985a93c5f1971a72c2d1064aa4a9ad544c2caf1722ab0f98c94943741403ed15d01199b4
6
+ metadata.gz: debb2d7d89a229098d55942e6d30ff6be5f873f2857d15ed512db3ddd71199e213a40cbda01813568978ea9530aa9f12b024578b9d4f00a91f8315877b7bb744
7
+ data.tar.gz: 5a19c971c3f060d4fa4161ee98afd88c18a8aea75e22dd0402dddfc902ae6fa56beb8b486aae8c0da73c324b5c43c8e88211b48cbf060fa6336cd466e68b12d5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Omniauth::OcTanner
1
+ # OmniAuth::OCTanner
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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
 
@@ -1,7 +1,3 @@
1
1
  require "omniauth/oc_tanner/version"
2
+ require "omniauth/strategies/oc_tanner"
2
3
 
3
- module Omniauth
4
- module OcTanner
5
- # Your code goes here...
6
- end
7
- end
@@ -1,5 +1,5 @@
1
- module Omniauth
2
- module OcTanner
3
- VERSION = "0.1.0"
1
+ module OmniAuth
2
+ module OCTanner
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -5,7 +5,7 @@ module OmniAuth
5
5
  class OCTanner < OmniAuth::Strategies::OAuth2
6
6
  option :name, 'oc-tanner'
7
7
  option :client_options, {
8
- site: "https://oc-eve-prod.herokuapp.com",
8
+ site: "https://accounts.octanner.com",
9
9
  authorize_url: 'dialog/authorize'
10
10
  }
11
11
  end
@@ -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 = Omniauth::OcTanner::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 will provide a simple provider for OAuth2 so you can hit the EVE auth service with relative ease.}
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: 0.1.0
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-05-01 00:00:00.000000000 Z
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 will provide a simple provider for OAuth2 so you can hit
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: []