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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 960e2e247113e1b9ad3674056555041c980ba52e2caec7f27440ba72f233b040
4
- data.tar.gz: 9125b715b45c246433f4345843dabcce6b25dffe962e60056372f1a9a5f47ced
3
+ metadata.gz: ec35e89f72fb4de46b6d0cacdf0ef4d0aacff1e543b1385610eb9475404f3f1d
4
+ data.tar.gz: b80d2d6e91fc6f77f6a1a1f8d58ae1dc70f2511ea7ecb05c6af696a7ff456b8e
5
5
  SHA512:
6
- metadata.gz: f43de86f89e07a6391ad681da98b2b28e95627ad71e6d24cc0eda7064336b2628a69982cd0d10044e018985a48d887b44bf34f05da89b5cb39bd4ccfcd2d6ed7
7
- data.tar.gz: b0ad5955ef0c7d5adb0ff6dd9515cd41da0d490876577c92bb8eaefd3a54904a75661f1bba878b98ae42271b9190e45b57e5c8667f9bbece7c904f40189320cc
6
+ metadata.gz: fdd0222ae9942dfda62f1eb5be397f828318c7bf19c4ae9768be9b6563c81f9d24acce2070c50fdeea9d8f3d8a1cc6868963065787c7f43c3f5a9b194b8711cd
7
+ data.tar.gz: da371aab28d2db0b4e6598adf6e12aa6e20f563ca83d824e0f8d4b68137969c90f185673942846518b68bb8a6710b2b7309d5566f21cef2c8c9c4a456a3736ac
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.0] - 2025-11-28
4
+
5
+ - Rename strategy from `YahoojpV2` to `Yahoojp`
6
+
3
7
  ## [0.0.0] - 2025-11-09
4
8
 
5
9
  - Initial release
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 :yahoojp_v2, ENV['YAHOOJP_CLIENT_ID'], ENV['YAHOOJP_CLIENT_SECRET']
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: [:yahoojp_v2]
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 :yahoojp_v2, ENV['YAHOOJP_CLIENT_ID'], ENV['YAHOOJP_CLIENT_SECRET'],
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/yahoojp_v2/callback', # Custom callback path
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: 'yahoojp_v2',
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 YahoojpV2 < OmniAuth::Strategies::OAuth2
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, 'yahoojp_v2'
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',
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module YahoojpV2
5
- VERSION = '0.0.0'
5
+ VERSION = '1.0.0'
6
6
  end
7
7
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'omniauth/yahoojp_v2/version'
4
- require 'omniauth/strategies/yahoojp_v2'
4
+ require 'omniauth/strategies/yahoojp'
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: 0.0.0
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/yahoojp_v2.rb
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/v0.0.0
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/v0.0.0
74
- source_code_uri: https://github.com/cadenza-tech/omniauth-yahoojp-v2/tree/v0.0.0
75
- changelog_uri: https://github.com/cadenza-tech/omniauth-yahoojp-v2/blob/v0.0.0/CHANGELOG.md
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/0.0.0
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: []