authsignal-ruby 4.0.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/authsignal/client.rb +5 -0
- data/lib/authsignal/version.rb +1 -1
- data/lib/authsignal.rb +7 -0
- 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: 9c4fa986346960144f15616720f21828275ffabdf16a817e05cadb4ee3c33565
|
4
|
+
data.tar.gz: 0b748a47e76e7af70786179cfde9fa037188da9c6beee9d25194e47f61adf98e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dfcbd7a4ef015d250e33eebf556f1c651d440de45df9155791748d77f9668e57a40d0e27fb5091290fe178130c3dd70c09cc8aa85829855e317ab263637c5af
|
7
|
+
data.tar.gz: 9ed3d53d1cd3772b2c6744dfacf1ff1471f09e743e1b9ba102f3d731b0c39e185533bad167ceb6f536c0b77c2be49b79094e46fafca8840542dc5b73fd1eb31d
|
data/Gemfile.lock
CHANGED
data/lib/authsignal/client.rb
CHANGED
@@ -74,6 +74,11 @@ module Authsignal
|
|
74
74
|
make_request(:get, "users/#{url_encode(user_id)}/actions/#{action}/#{url_encode(idempotency_key)}")
|
75
75
|
end
|
76
76
|
|
77
|
+
def update_action_state(user_id:, action:, idempotency_key:, state:)
|
78
|
+
body = { state: state }
|
79
|
+
make_request(:patch, "users/#{url_encode(user_id)}/actions/#{action}/#{url_encode(idempotency_key)}", body: body)
|
80
|
+
end
|
81
|
+
|
77
82
|
##
|
78
83
|
# TODO: delete identify?
|
79
84
|
def identify(user_id, user_payload)
|
data/lib/authsignal/version.rb
CHANGED
data/lib/authsignal.rb
CHANGED
@@ -49,6 +49,13 @@ module Authsignal
|
|
49
49
|
handle_response(response)
|
50
50
|
end
|
51
51
|
|
52
|
+
def update_action_state(user_id:, action:, idempotency_key:, state:)
|
53
|
+
# NOTE: Rely on API to respond when given invalid state
|
54
|
+
response = Client.new.update_action_state(user_id: user_id, action: action, idempotency_key: idempotency_key, state: state)
|
55
|
+
|
56
|
+
handle_response(response)
|
57
|
+
end
|
58
|
+
|
52
59
|
def enroll_verified_authenticator(user_id:, authenticator:)
|
53
60
|
response = Client.new.enroll_verified_authenticator(user_id, authenticator)
|
54
61
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authsignal-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- justinsoong
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|