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 +4 -4
- data/Gemfile +9 -0
- data/README.md +41 -1
- data/lib/omniauth-crest/version.rb +1 -1
- data/lib/omniauth/strategies/crest.rb +1 -2
- data/omniauth-crest.gemspec +0 -3
- metadata +1 -44
- data/.travis.yml +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95bd2da66661482fd894097e740d529a941227fd
|
4
|
+
data.tar.gz: 6f2ecb58517599bdd1e9bf5166bc4687da7a68b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
@@ -7,12 +7,11 @@ module OmniAuth
|
|
7
7
|
|
8
8
|
option :client_options, site: 'https://login.eveonline.com'
|
9
9
|
|
10
|
-
uid { raw_info['
|
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'],
|
data/omniauth-crest.gemspec
CHANGED
@@ -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.
|
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
|
data/.travis.yml
DELETED