statelydb 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/common/auth/auth0_token_provider.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16704510255d3248c18f2f26a63e2e94debe5207e6bdb820b8be999a44aeb486
|
4
|
+
data.tar.gz: 981f9a3030231adfcf253dbde5c84bb54232d64c4cec169a630d8c085194cc0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 647935dfc070e7b871933d9f75d24c7b6e651cd95005b374a65c5af7e1d0f3271259c5bf585350b3c9065fef8e33c10e86212bb3500d87ef0647ed77cf9bb79d
|
7
|
+
data.tar.gz: a5857dbb91d7f4f91e2d3518d1e0fcdaf8104e5e26b792440207c18f4c18f3d7e0a639c2d090c9ef95cf25e623b00ee8d708956d8989993a54e4a44b8f5f0947
|
@@ -115,7 +115,7 @@ module StatelyDB
|
|
115
115
|
end
|
116
116
|
|
117
117
|
# Refresh the access token
|
118
|
-
# @return [
|
118
|
+
# @return [Task] A task that will resolve to the new access token
|
119
119
|
def refresh_token
|
120
120
|
Async do
|
121
121
|
# we use an Async::Condition to dedupe multiple requests here
|
@@ -125,7 +125,7 @@ module StatelyDB
|
|
125
125
|
if @pending_refresh.nil?
|
126
126
|
begin
|
127
127
|
@pending_refresh = Async::Condition.new
|
128
|
-
new_access_token = refresh_token_impl
|
128
|
+
new_access_token = refresh_token_impl
|
129
129
|
# now broadcast the new token to any waiters
|
130
130
|
@pending_refresh.signal(new_access_token)
|
131
131
|
new_access_token
|
@@ -150,7 +150,7 @@ module StatelyDB
|
|
150
150
|
# Refresh the access token implementation
|
151
151
|
# @return [String] The new access token
|
152
152
|
def refresh_token_impl
|
153
|
-
|
153
|
+
Sync do
|
154
154
|
resp_data = make_auth0_request
|
155
155
|
|
156
156
|
new_access_token = resp_data["access_token"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statelydb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stately Cloud, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|