omniauth-edlink 0.2.0 → 0.3.0

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
  SHA256:
3
- metadata.gz: c03f09095c79e90de774f936dca9d726269445970cf96f090441a69ad25074da
4
- data.tar.gz: dc21632edffeabefa2461bd6eaf5a85e3ef4418b45e52ef515689b90083c31ce
3
+ metadata.gz: 10539216013316ade8d1e23d6e7e7b13069533671cee87a74864d3db287a2fc3
4
+ data.tar.gz: 78c258074dacc027dabab6a886e771858f93c34ce73fab324d38455d71f0aec3
5
5
  SHA512:
6
- metadata.gz: 831df80a6be58b2ed2c924f3db08f5cf76756cd817d42c39c3063cddceb551d7b96c34c3cc01f0389f17a3f078b3bc499a2e2a7a8d713b3c598abd0aba42634e
7
- data.tar.gz: 7fd816f3e7b426680add1369102edaefc35d056d4384a8534b8ab79b8d162af0b9333fcea2737b282df609928f3aa5b3166a33e67eb4dd04f37369d9f07f0752
6
+ metadata.gz: a92ccf04ecf4199790f3f133450ff3eb43bcc8e094c4915c22842292591171580117e870903c4dd84fb93d2a14ec7bdd20f6a599003a53c16ae700dba3ae655b
7
+ data.tar.gz: b5d2c321f0780fb7f5b4775c10c01da1b148ff52b3fe4b1fa7b5ff07c00b04e01bd9467bebbfb8209492468838b466ac2ff8cf89a407ba3ba4469f0b751f38fd
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## 0.3.0
5
+
6
+ * Bugfix for generating a redirect to generic login page (without integration_id)
7
+ * Skip state validation, because state param is removed by Edlink anyway.
8
+
4
9
  ## 0.2.0
5
10
 
6
11
  * Support optional integration_id parameter that redirect users directly to IdP login page.
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Edlink
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.3.0'.freeze
4
4
  end
5
5
  end
@@ -21,6 +21,8 @@ module OmniAuth
21
21
  access_token_class: AccessToken
22
22
  }
23
23
  option :uid_field, 'id'
24
+ # `state` injected during the request phase is lost by Edlink, you don't get it in the callback phase.
25
+ option :provider_ignores_state, true
24
26
 
25
27
  uid do
26
28
  raw_info[options.uid_field.to_s]
@@ -33,10 +35,9 @@ module OmniAuth
33
35
  end
34
36
 
35
37
  def authorize_params
36
- super.tap do |params|
37
- params[:scope] = [:email, :profile]
38
- params[:response_type] = :code
39
- end
38
+ super
39
+ .merge({ :redirect_uri => callback_url })
40
+ .merge(client.auth_code.authorize_params)
40
41
  end
41
42
 
42
43
  info do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-edlink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Bednarz