omniauth-crest 1.0.0 → 1.1.0

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: 6e5287149c4a334bb1b4824f7e7e1ac4ddc886cc
4
- data.tar.gz: 7f85b86d9d456229fdf08087c14b32d4cdde78f8
3
+ metadata.gz: 95bd2da66661482fd894097e740d529a941227fd
4
+ data.tar.gz: 6f2ecb58517599bdd1e9bf5166bc4687da7a68b0
5
5
  SHA512:
6
- metadata.gz: 62b898b0fd839d709336488f685fb3928ebea10dbfd89a76da9cb10f2466c787e1e309e8ead1cf682f943d5b4113ad54d89a1e2e04fdf971685217e29e7e2b30
7
- data.tar.gz: c24485d2b908ef0d0246655f84eb83aeb6c274c09e160ee65a02c73a7e57126fae9916269e0cd2a3de625d60f85cf1ce710db8790f9ca515959e950c122a123a
6
+ metadata.gz: bdb17a11c058e6cfc9370d3c1182358321ccb7b85fcbe11528424abc2eeed9e9c9ca863854d96544949c59a3f479846aa46dee1cde6446cf73a1525150a19e33
7
+ data.tar.gz: 6d09758a8c1a6ce2032d0737441c620a1ebed863d8201f8a41d8fafa40119406f66275f00f040d0602df8a2044756c500abb5889de00e05cefb60687910f4a86
data/Gemfile CHANGED
@@ -2,3 +2,12 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in omniauth-crest.gemspec
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem 'minitest', require: 'minitest/autorun'
8
+ gem 'minitest-reporters'
9
+ gem 'pry'
10
+ gem 'rack-test'
11
+ gem 'sinatra'
12
+ gem 'webmock', require: 'webmock/minitest'
13
+ end
data/README.md CHANGED
@@ -2,7 +2,39 @@
2
2
 
3
3
  This gem provides the [EVE Online](http://www.eveonline.com)/CREST strategy for [OmniAuth](https://github.com/intridea/omniauth).
4
4
 
5
- This allows your users to authenticate themselves via their EVE Online Account.
5
+ This allows your users to authenticate themselves via their EVE Online **Character**.
6
+
7
+ auth_hash example:
8
+
9
+ ```ruby
10
+ {
11
+ "provider" => "crest",
12
+ "uid" => 1337,
13
+ "info" => {
14
+ "name" => "Foo Bar",
15
+ "character_id" => 1337,
16
+ "expires_on" => "2015-08-05T07:02:55",
17
+ "scopes" => "",
18
+ "token_type" => "Character",
19
+ "character_owner_hash" => "b4d455="
20
+ },
21
+ "credentials" => {
22
+ "token" => "...",
23
+ "expires_at" => 1438758175,
24
+ "expires" => true
25
+ },
26
+ "extra" => {
27
+ "raw_info" => {
28
+ "CharacterID" => 1337,
29
+ "CharacterName" => "Foo Bar",
30
+ "ExpiresOn" => "2015-08-05T07:02:55",
31
+ "Scopes" => "",
32
+ "TokenType" => "Character",
33
+ "CharacterOwnerHash" => "b4d455="
34
+ }
35
+ }
36
+ }
37
+ ```
6
38
 
7
39
  ## Usage
8
40
 
@@ -33,6 +65,14 @@ Put in your Client ID and Secret Key of course. You can get them from https://de
33
65
 
34
66
  For more information on OmniAuth see [the OmniAuth Wiki](https://github.com/intridea/omniauth/wiki).
35
67
 
68
+ ## Questions
69
+
70
+ Ask me on Twitter at [@dratir](https://twitter.com/dratir).
71
+
72
+ ## Contribute
73
+
74
+ If you find a Bug or have a feature suggestion, please [open an Issue on GitHub](https://github.com/mhutter/omniauth-crest/issues/new).
75
+
36
76
 
37
77
  ## COPYRIGHT NOTICE
38
78
  EVE Online and the EVE logo are the registered trademarks of CCP hf. All rights are reserved worldwide. All other trademarks are the property of their respective owners. EVE Online, the EVE logo, EVE and all associated logos and designs are the intellectual property of CCP hf. All artwork, screenshots, characters, vehicles, storylines, world facts or other recognizable features of the intellectual property relating to these trademarks are likewise the intellectual property of CCP hf. CCP hf. has granted permission to Manuel Hutter to use EVE Online and all associated logos and designs for promotional and information purposes on its website but does not endorse, and is not in any way affiliated with, Manuel Hutter. CCP is in no way responsible for the content on or functioning of this website, nor can it be liable for any damage arising from the use of this website.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Crest
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -7,12 +7,11 @@ module OmniAuth
7
7
 
8
8
  option :client_options, site: 'https://login.eveonline.com'
9
9
 
10
- uid { raw_info['CharacterOwnerHash'] }
10
+ uid { raw_info['CharacterID'] }
11
11
 
12
12
  info do
13
13
  {
14
14
  name: raw_info['CharacterName'],
15
- character_name: raw_info['CharacterName'],
16
15
  character_id: raw_info['CharacterID'],
17
16
  expires_on: raw_info['ExpiresOn'],
18
17
  scopes: raw_info['Scopes'],
@@ -21,7 +21,4 @@ Gem::Specification.new do |s|
21
21
  s.add_runtime_dependency 'omniauth-oauth2', '~> 1.0'
22
22
  s.add_development_dependency 'bundler', '~> 1.10'
23
23
  s.add_development_dependency 'rake', '~> 10.0'
24
- s.add_development_dependency 'minitest'
25
- s.add_development_dependency 'minitest-reporters'
26
- s.add_development_dependency 'rack-test'
27
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-crest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Hutter
@@ -52,48 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: minitest-reporters
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rack-test
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
55
  description: OmniAuth strategy for CREST/EVE Online
98
56
  email:
99
57
  - git@mhutter.net
@@ -102,7 +60,6 @@ extensions: []
102
60
  extra_rdoc_files: []
103
61
  files:
104
62
  - ".gitignore"
105
- - ".travis.yml"
106
63
  - Gemfile
107
64
  - LICENSE.txt
108
65
  - README.md
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.2
4
- before_install: gem install bundler -v 1.10.5