omniauth-bunq 0.1.4 → 0.1.5

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
2
  SHA1:
3
- metadata.gz: d3f7b1e9bd27c36573ff6c9b2a697fc7cfc7bb87
4
- data.tar.gz: 877590ad716cb8bbbaba5ff34dbc374b140371ad
3
+ metadata.gz: 02b70de6139337042caceb44ca11c184881014ec
4
+ data.tar.gz: 63897c38c2a8af94cf4b51a87f58952faf9807af
5
5
  SHA512:
6
- metadata.gz: aade026224efe4b3668630bf2d14e809b286147e3afc0bc18b26038e9d1a9302c382a1f49786516a24cb855d1cbb49120c9c43c3cbec58b3e5f9dcbd1983fdfc
7
- data.tar.gz: da19ed3d3241ce0703ffcb5722bc1b2832b834fc7259aeabd0daeb2ff269cccadf7da4b5811ef13794901352124fc9afd3366c35071d520e0074e6069e648be4
6
+ metadata.gz: 0a07c4067868479090ee099f0919a1bb4835cef71c0863266f762437f92ddc7dcdc0ed58a012348e4d3a058535c9dfecbc6465197fb20e05d53fa9217f8a5aca
7
+ data.tar.gz: d301e1f1daea616b60e537ef5c3fa58cd480079a270706966c52e0719db8ec57aa945185abde4a5240eaf7b9feed4e0ec1fe1888c630e6c94c6e06d7f3503542
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Bunq
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -4,31 +4,11 @@ module OmniAuth
4
4
  module Strategies
5
5
  class Bunq < OmniAuth::Strategies::OAuth2
6
6
  option :client_options, {
7
- :site => 'https://oauth.bunq.com/auth',
8
- :authorize_url => 'https://oauth.bunq.com/auth',
9
- :token_url => 'https://api.oauth.bunq.com/v1/token'
7
+ site: "https://oauth.bunq.com",
8
+ authorize_url: "/auth",
9
+ token_url: "https://api.oauth.bunq.com/v1/token"
10
10
  }
11
11
 
12
- def request_phase
13
- super
14
- end
15
-
16
- def authorize_params
17
- super.tap do |params|
18
- %w[scope client_options].each do |v|
19
- if request.params[v]
20
- params[v.to_sym] = request.params[v]
21
- end
22
- end
23
- end
24
- end
25
-
26
- def token_params
27
- super.tap do |params|
28
- params[:grant_type] = "authorization_code"
29
- end
30
- end
31
-
32
12
  uid do
33
13
  puts options
34
14
  request.params[options.uid_field.to_s]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-bunq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dunya Kirkali