omniauth-yahoojp-v2 0.0.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +5 -5
- data/lib/omniauth/strategies/{yahoojp_v2.rb → yahoojp.rb} +2 -2
- data/lib/omniauth/yahoojp_v2/version.rb +1 -1
- data/lib/omniauth-yahoojp-v2.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec35e89f72fb4de46b6d0cacdf0ef4d0aacff1e543b1385610eb9475404f3f1d
|
|
4
|
+
data.tar.gz: b80d2d6e91fc6f77f6a1a1f8d58ae1dc70f2511ea7ecb05c6af696a7ff456b8e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fdd0222ae9942dfda62f1eb5be397f828318c7bf19c4ae9768be9b6563c81f9d24acce2070c50fdeea9d8f3d8a1cc6868963065787c7f43c3f5a9b194b8711cd
|
|
7
|
+
data.tar.gz: da371aab28d2db0b4e6598adf6e12aa6e20f563ca83d824e0f8d4b68137969c90f185673942846518b68bb8a6710b2b7309d5566f21cef2c8c9c4a456a3736ac
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -38,7 +38,7 @@ Add the following to `config/initializers/devise.rb`:
|
|
|
38
38
|
```ruby
|
|
39
39
|
# config/initializers/devise.rb
|
|
40
40
|
Devise.setup do |config|
|
|
41
|
-
config.omniauth :
|
|
41
|
+
config.omniauth :yahoojp, ENV['YAHOOJP_CLIENT_ID'], ENV['YAHOOJP_CLIENT_SECRET']
|
|
42
42
|
end
|
|
43
43
|
```
|
|
44
44
|
|
|
@@ -57,7 +57,7 @@ Add the OmniAuth configuration to your Devise model:
|
|
|
57
57
|
class User < ApplicationRecord
|
|
58
58
|
devise :database_authenticatable, :registerable,
|
|
59
59
|
:recoverable, :rememberable, :validatable,
|
|
60
|
-
:omniauthable, omniauth_providers: [:
|
|
60
|
+
:omniauthable, omniauth_providers: [:yahoojp]
|
|
61
61
|
end
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -68,10 +68,10 @@ You can configure several options:
|
|
|
68
68
|
```ruby
|
|
69
69
|
# config/initializers/devise.rb
|
|
70
70
|
Devise.setup do |config|
|
|
71
|
-
config.omniauth :
|
|
71
|
+
config.omniauth :yahoojp, ENV['YAHOOJP_CLIENT_ID'], ENV['YAHOOJP_CLIENT_SECRET'],
|
|
72
72
|
{
|
|
73
73
|
scope: 'openid profile email address', # Specify OAuth scopes
|
|
74
|
-
callback_path: '/custom/
|
|
74
|
+
callback_path: '/custom/yahoojp/callback', # Custom callback path
|
|
75
75
|
prompt: 'consent', # Optional: force consent screen
|
|
76
76
|
display: 'popup', # Optional: auth page display mode
|
|
77
77
|
max_age: 600, # Optional: max seconds since last auth
|
|
@@ -93,7 +93,7 @@ After successful authentication, the auth hash will be available in `request.env
|
|
|
93
93
|
|
|
94
94
|
```ruby
|
|
95
95
|
{
|
|
96
|
-
provider: '
|
|
96
|
+
provider: 'yahoojp',
|
|
97
97
|
uid: 'FQBSQOIDGW5PV4NHAAUY7BWAMU',
|
|
98
98
|
info: {
|
|
99
99
|
name: '矢風太郎',
|
|
@@ -7,14 +7,14 @@ require 'base64'
|
|
|
7
7
|
|
|
8
8
|
module OmniAuth
|
|
9
9
|
module Strategies
|
|
10
|
-
class
|
|
10
|
+
class Yahoojp < OmniAuth::Strategies::OAuth2
|
|
11
11
|
DEFAULT_SCOPE = 'openid profile email'
|
|
12
12
|
DEFAULT_JWT_LEEWAY = 600
|
|
13
13
|
USER_INFO_URL = 'https://userinfo.yahooapis.jp/yconnect/v2/attribute'
|
|
14
14
|
JWKS_URL = 'https://auth.login.yahoo.co.jp/yconnect/v2/jwks'
|
|
15
15
|
ID_TOKEN_ISSUER = 'https://auth.login.yahoo.co.jp/yconnect/v2'
|
|
16
16
|
|
|
17
|
-
option :name, '
|
|
17
|
+
option :name, 'yahoojp'
|
|
18
18
|
option :client_options, {
|
|
19
19
|
site: 'https://auth.login.yahoo.co.jp',
|
|
20
20
|
authorize_url: '/yconnect/v2/authorization',
|
data/lib/omniauth-yahoojp-v2.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-yahoojp-v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Masahiro
|
|
@@ -64,17 +64,17 @@ files:
|
|
|
64
64
|
- README.md
|
|
65
65
|
- Rakefile
|
|
66
66
|
- lib/omniauth-yahoojp-v2.rb
|
|
67
|
-
- lib/omniauth/strategies/
|
|
67
|
+
- lib/omniauth/strategies/yahoojp.rb
|
|
68
68
|
- lib/omniauth/yahoojp_v2/version.rb
|
|
69
|
-
homepage: https://github.com/cadenza-tech/omniauth-yahoojp-v2/tree/
|
|
69
|
+
homepage: https://github.com/cadenza-tech/omniauth-yahoojp-v2/tree/v1.0.0
|
|
70
70
|
licenses:
|
|
71
71
|
- MIT
|
|
72
72
|
metadata:
|
|
73
|
-
homepage_uri: https://github.com/cadenza-tech/omniauth-yahoojp-v2/tree/
|
|
74
|
-
source_code_uri: https://github.com/cadenza-tech/omniauth-yahoojp-v2/tree/
|
|
75
|
-
changelog_uri: https://github.com/cadenza-tech/omniauth-yahoojp-v2/blob/
|
|
73
|
+
homepage_uri: https://github.com/cadenza-tech/omniauth-yahoojp-v2/tree/v1.0.0
|
|
74
|
+
source_code_uri: https://github.com/cadenza-tech/omniauth-yahoojp-v2/tree/v1.0.0
|
|
75
|
+
changelog_uri: https://github.com/cadenza-tech/omniauth-yahoojp-v2/blob/v1.0.0/CHANGELOG.md
|
|
76
76
|
bug_tracker_uri: https://github.com/cadenza-tech/omniauth-yahoojp-v2/issues
|
|
77
|
-
documentation_uri: https://rubydoc.info/gems/omniauth-yahoojp-v2/
|
|
77
|
+
documentation_uri: https://rubydoc.info/gems/omniauth-yahoojp-v2/1.0.0
|
|
78
78
|
funding_uri: https://patreon.com/CadenzaTech
|
|
79
79
|
rubygems_mfa_required: 'true'
|
|
80
80
|
rdoc_options: []
|