omniauth-daccount 0.3.2 → 0.3.3

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
- SHA1:
3
- metadata.gz: 5ecea44ccd40301f57e0cf82fd3640397aa4ce50
4
- data.tar.gz: dadc3407cdafb6a990bf399f196dacd23b8196e0
2
+ SHA256:
3
+ metadata.gz: 8301a742cce7d869cad74edf72492cee8069905847cb22d89f3e6526fb33dba4
4
+ data.tar.gz: 7d8c15dc50dc563c0c4a4f0c32ffab38eb00eea0fc084bc2d41ea28ba796ee91
5
5
  SHA512:
6
- metadata.gz: f5923c76b11ca941da0b5ed99ffbd4ed51c58f9cb699f81138a52b8b085a53d520506b71f7ff0c8ce0c36e72ef2a90a44e84657d330f1c9a2d77d9f4ac36cd77
7
- data.tar.gz: d997d6a414f047c25abdcaf8dcf9956906975e717f9ee2ba686cd03477a47997e8475098ca3341154222bcfccc70ce15ddeac479bbd665332fd9359bfb980b18
6
+ metadata.gz: cb31e1a636978905b7152155c7992bac485b448755a5f6c87aaae2da01792dca76fff7d4036ac2f9d6dd7d84fdb8d9c1ff32313a2cc7f10c20ce04762ccf2211
7
+ data.tar.gz: 5c03a20c936bb6b749a42b1a3e2ff2959d22848f567a5aeb8de2a8386668750d5d79815af202c299a6e576b6772b7701e4bc0abd5696c1f024c962a0f7c6ef7e
data/README.md CHANGED
@@ -20,20 +20,24 @@ Or install it yourself as:
20
20
 
21
21
  $ gem install omniauth-daccount
22
22
 
23
- ## Usage
23
+ ## Setup Your d-account API
24
+ - Go to https://g.daccount.docomo.ne.jp/VIEW_OC01/login4
25
+ - Sign in and Go to 'RPサイト情報管理'
26
+ - Create Your RP Site if you don't have, then you must provide the `openid` scope.
27
+ - Go to '詳細', then note client_id and client_secret.
24
28
 
25
- TODO: Write usage instructions here
29
+ ## Usage
26
30
 
27
- ## Development
31
+ Here's an example for adding the middleware to a Rails app in config/initializers/omniauth.rb:
28
32
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
33
+ ```
34
+ Rails.application.config.middleware.use OmniAuth::Builder do
35
+ provider :daccount, ENV['D_ACCOUNT_CLIENT_ID'], ENV['D_ACCOUNT_CLIENT_SECRET'], callback_path: "your callback url"
36
+ end
37
+ ```
30
38
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
39
+ Note: daccount connect cannot register http url as callback url. That is, localhost cannot be registered. Of course in most cases using localhosts while developing your application... but we need to prepare https callback url in this case(You can choise deploying heloku or using ngrok, and more).
32
40
 
33
41
  ## Contributing
34
42
 
35
43
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/omniauth-daccount. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
-
37
- ## Code of Conduct
38
-
39
- Everyone interacting in the Omniauth::Daccount project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/omniauth-daccount/blob/master/CODE_OF_CONDUCT.md).
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Daccount
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3"
4
4
  end
5
5
  end
@@ -14,12 +14,13 @@ module OmniAuth
14
14
  AUTH_IF = 1
15
15
 
16
16
  option :name, 'daccount'
17
- #authorizeにリクエストフォワードする時のapp側のパラメータ値にこれらを含めること。
17
+ #Include parameters when request-forwarding to authorize.
18
18
  option :authorize_options, %i[nounce redirect_uri]
19
19
  option :verify_iss, true
20
20
  option :callback_path, '/login/docomo_callback'
21
21
 
22
- option :client_options, {#authorizationリクエスト時の追加パラメータ
22
+ # Additional Parameters which requires when authorization requests.
23
+ option :client_options, {
23
24
  site: 'https://conf.uw.docomo.ne.jp',
24
25
  authorize_url: 'https://id.smt.docomo.ne.jp/cgi8/oidc/authorize',
25
26
  token_url: 'https://conf.uw.docomo.ne.jp/common/token',
@@ -6,8 +6,8 @@ require "omniauth/daccount/version"
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "omniauth-daccount"
8
8
  spec.version = OmniAuth::Daccount::VERSION
9
- spec.authors = ["Koji Yamazaki"]
10
- spec.email = ["kouji.yamazaki.cv@nttdocomo.com"]
9
+ spec.authors = ["jagrament"]
10
+ spec.email = ["t10933ky@gmail.com"]
11
11
 
12
12
  spec.summary = %q{d-account Oauth2 strategy for OmniAuth.}
13
13
  spec.description = %q{d-account Oauth2 strategy for OmniAuth. This allows you to login to d-account with your ruby app}
@@ -21,8 +21,12 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ["lib"]
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.15"
24
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "rake", ">= 12.3.3"
25
25
  spec.add_development_dependency "rspec", "~> 3.0"
26
+ spec.add_development_dependency "simplecov", "~> 0.18.5"
27
+ spec.add_development_dependency "rack-test", "~> 1.1.0"
28
+ spec.add_development_dependency "webmock", "~> 3.8.3"
29
+ spec.add_development_dependency "pry-byebug", "~> 3.9.0"
26
30
 
27
31
  spec.add_runtime_dependency 'omniauth', '>= 1.1.1'
28
32
  spec.add_runtime_dependency 'omniauth-oauth2', '>= 1.3.1'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-daccount
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
- - Koji Yamazaki
7
+ - jagrament
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-28 00:00:00.000000000 Z
11
+ date: 2020-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 12.3.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: 12.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +52,62 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: simplecov
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.18.5
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.18.5
69
+ - !ruby/object:Gem::Dependency
70
+ name: rack-test
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.1.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.1.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 3.8.3
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 3.8.3
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry-byebug
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 3.9.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 3.9.0
55
111
  - !ruby/object:Gem::Dependency
56
112
  name: omniauth
57
113
  requirement: !ruby/object:Gem::Requirement
@@ -97,14 +153,13 @@ dependencies:
97
153
  description: d-account Oauth2 strategy for OmniAuth. This allows you to login to d-account
98
154
  with your ruby app
99
155
  email:
100
- - kouji.yamazaki.cv@nttdocomo.com
156
+ - t10933ky@gmail.com
101
157
  executables: []
102
158
  extensions: []
103
159
  extra_rdoc_files: []
104
160
  files:
105
161
  - ".gitignore"
106
162
  - ".rspec"
107
- - ".ruby-version"
108
163
  - ".travis.yml"
109
164
  - CODE_OF_CONDUCT.md
110
165
  - Gemfile
@@ -135,8 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
190
  - !ruby/object:Gem::Version
136
191
  version: '0'
137
192
  requirements: []
138
- rubyforge_project:
139
- rubygems_version: 2.6.11
193
+ rubygems_version: 3.0.3
140
194
  signing_key:
141
195
  specification_version: 4
142
196
  summary: d-account Oauth2 strategy for OmniAuth.
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.4.0