omniauth-okta 1.0.0 → 2.0.0.rc1

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: 650d54dafaf437d369cb409d744f748555cdd1b7e3c55fc4f32bfba93ad7f5b6
4
- data.tar.gz: 28dc60af8636a5b7c52fc06b4c5d4fad5d2ce552a087d916c266fb08d9d34324
3
+ metadata.gz: 4c650d6bf54a0b04d219137098f91a7da75839050254663c761bc117d9e8db51
4
+ data.tar.gz: c87ae72be14fba06dfcff3eeb728bac5f30045e9dd578e2c3c5317dc784e7ff1
5
5
  SHA512:
6
- metadata.gz: f3ea460bba7ec3750dc952689368e529fcc8b35886559952c9e0dff09b6979852cd0fc89b1cdf86e65f01a0d08ce9de02e89e93d7c2e95e4411a8a951ead4d27
7
- data.tar.gz: fed4566b63e0c4835e08f79393923db0be979344d289a5330261746db6f589dd49f607e1fcf5169da4bdcb73824a5d06315bcee79b63a9c9ca299b08cc48ebcd
6
+ metadata.gz: 1a52f980b4dc26cec6b1a816c86db727254a87a3c436f662af5a15b9de7f2ba06823441bcc5ff052f156deed45fa1d8e8af0bc9ce708e1b3a6e9f813c2503862
7
+ data.tar.gz: 453c7387c83013eba0f9081374c957aafc493d972064601684f7f6b746fc3a454ff49b529f4f9f5330302693af3a1aa3f3c1b78a898824c02a84a4905433a561
@@ -40,10 +40,10 @@ module OmniAuth
40
40
  h[:raw_info] = raw_info unless skip_info?
41
41
 
42
42
  if access_token
43
- h[:id_token] = access_token.token
43
+ h[:id_token] = id_token
44
44
 
45
- if !options[:skip_jwt] && !access_token.token.nil?
46
- h[:id_info] = validated_token(access_token.token)
45
+ if !options[:skip_jwt] && !id_token.nil?
46
+ h[:id_info] = validated_token(id_token)
47
47
  end
48
48
  end
49
49
  end
@@ -53,18 +53,6 @@ module OmniAuth
53
53
  options.fetch(:client_options)
54
54
  end
55
55
 
56
- alias :oauth2_access_token :access_token
57
-
58
- def access_token
59
- if oauth2_access_token
60
- ::OAuth2::AccessToken.new(client, oauth2_access_token.token, {
61
- refresh_token: oauth2_access_token.refresh_token,
62
- expires_in: oauth2_access_token.expires_in,
63
- expires_at: oauth2_access_token.expires_at
64
- })
65
- end
66
- end
67
-
68
56
  def raw_info
69
57
  @_raw_info ||= access_token.get(client_options.fetch(:user_info_url)).parsed || {}
70
58
  rescue ::Errno::ETIMEDOUT
@@ -75,6 +63,12 @@ module OmniAuth
75
63
  options[:redirect_uri] || (full_host + callback_path)
76
64
  end
77
65
 
66
+ def id_token
67
+ return if access_token.nil?
68
+
69
+ access_token['id_token']
70
+ end
71
+
78
72
  # Returns the qualified URL for the authorization server
79
73
  #
80
74
  # This is necessary in the case where there is a custom authorization server.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Okta
5
- VERSION = '1.0.0'.freeze
5
+ VERSION = '2.0.0.rc1'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-okta
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Andrews
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-04-06 00:00:00.000000000 Z
12
+ date: 2022-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
@@ -116,11 +116,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - ">="
119
+ - - ">"
120
120
  - !ruby/object:Gem::Version
121
- version: '0'
121
+ version: 1.3.1
122
122
  requirements: []
123
- rubygems_version: 3.0.0
123
+ rubygems_version: 3.0.3.1
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Unofficial OmniAuth OAuth2 strategy for Okta