omniauth-eve_sso 0.1.0 → 0.2.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
- SHA1:
3
- metadata.gz: c2a2e86a3416d6a0ce9cca64e77ea4b08b2f0493
4
- data.tar.gz: a2df32cd4ee97d149a6e65e1d75a8f9224719834
2
+ SHA256:
3
+ metadata.gz: 33690efef111557b35674352236653189ebe62cd591fda1c31a3be711f03e552
4
+ data.tar.gz: 9bf02a1b4b934a3ae4eb336d68de2f512592eb0404e539c3d3cbbc493e7b9ada
5
5
  SHA512:
6
- metadata.gz: 12c2d610b72125397ad80a311edbe9401431bdeb65c72ece97444781651f983a9a7851be56498e4b3639138e9e7807ed8a2de40b72aa20c0265be042064516f8
7
- data.tar.gz: 10486aadca599a2ba0a570ed821b1470e507b03797ec8a286f024a9301f8b2dc3439a1ac70ba39309b71e9d1c1b3f00df5a239146ec1361dea4dc54092ad9e88
6
+ metadata.gz: 1e3312165dbf3d03d464a65a567b20cc9c9a02d2a3e01d6823cfae8f012d13ad4ff254e3dc0a9e9543e47f8835b76f18073b4db6ff3b981129280606677253f6
7
+ data.tar.gz: 28ea6d5827286cd2f47686266afc6b699e75f0530cabe0632af3e5678e2905905d17e517db982f0f10a9c91fb73c8c867ec733b355afcf5b38ce0d65d7571abc
@@ -1,22 +1,25 @@
1
- require 'omniauth-oauth2'
1
+ require "omniauth-oauth2"
2
2
 
3
3
  module OmniAuth
4
4
  module Strategies
5
5
  class EveSso < OmniAuth::Strategies::OAuth2
6
- option :name, 'eve_sso'
6
+ option :name, "eve_sso"
7
7
 
8
- option :client_options, site: 'https://login.eveonline.com'
8
+ option :client_options,
9
+ authorize_url: "/v2/oauth/authorize",
10
+ token_url: "/v2/oauth/token",
11
+ site: "https://login.eveonline.com/"
9
12
 
10
13
  uid { raw_info['CharacterID'] }
11
14
 
12
15
  info do
13
16
  {
14
- name: raw_info['CharacterName'],
15
- character_id: raw_info['CharacterID'],
16
- expires_on: raw_info['ExpiresOn'],
17
- scopes: raw_info['Scopes'],
18
- token_type: raw_info['TokenType'],
19
- character_owner_hash: raw_info['CharacterOwnerHash']
17
+ name: raw_info["character_name"],
18
+ character_id: raw_info["character_id"],
19
+ expires_on: raw_info["expires_on"],
20
+ scopes: raw_info["scopes"],
21
+ token_type: raw_info["token_type"],
22
+ character_owner_hash: raw_info["character_owner_hash"]
20
23
  }
21
24
  end
22
25
 
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module EveSso
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -23,5 +23,5 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.4'
25
25
  spec.add_development_dependency "bundler", "~> 1.13"
26
- spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rake", ">= 12.3.3"
27
27
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-eve_sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Briggs
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2016-11-09 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: omniauth-oauth2
@@ -42,16 +41,16 @@ dependencies:
42
41
  name: rake
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
- - - "~>"
44
+ - - ">="
46
45
  - !ruby/object:Gem::Version
47
- version: '10.0'
46
+ version: 12.3.3
48
47
  type: :development
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
- - - "~>"
51
+ - - ">="
53
52
  - !ruby/object:Gem::Version
54
- version: '10.0'
53
+ version: 12.3.3
55
54
  description: OmniAuth strategy for EVE Online Single Sign On
56
55
  email:
57
56
  - godamonra@gmail.com
@@ -74,7 +73,6 @@ homepage: https://github.com/sankage/omniauth-eve_sso
74
73
  licenses:
75
74
  - MIT
76
75
  metadata: {}
77
- post_install_message:
78
76
  rdoc_options: []
79
77
  require_paths:
80
78
  - lib
@@ -89,9 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
87
  - !ruby/object:Gem::Version
90
88
  version: '0'
91
89
  requirements: []
92
- rubyforge_project:
93
- rubygems_version: 2.6.7
94
- signing_key:
90
+ rubygems_version: 3.6.8
95
91
  specification_version: 4
96
92
  summary: OmniAuth strategy for EVE Online Single Sign On
97
93
  test_files: []