omniauth-okta 1.0.0 → 2.0.0.rc1
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 +4 -4
- data/lib/omniauth/strategies/okta.rb +9 -15
- data/lib/omniauth-okta/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c650d6bf54a0b04d219137098f91a7da75839050254663c761bc117d9e8db51
|
4
|
+
data.tar.gz: c87ae72be14fba06dfcff3eeb728bac5f30045e9dd578e2c3c5317dc784e7ff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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] =
|
43
|
+
h[:id_token] = id_token
|
44
44
|
|
45
|
-
if !options[:skip_jwt] && !
|
46
|
-
h[:id_info] = validated_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.
|
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:
|
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:
|
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:
|
121
|
+
version: 1.3.1
|
122
122
|
requirements: []
|
123
|
-
rubygems_version: 3.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
|