lockstep_rails 0.3.29 → 0.3.32
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94502402bd9d755992cd382ee97ed1fe0af5fe4e2b1a5737f786caffbee8b64c
|
4
|
+
data.tar.gz: 2ae8039dee7bf011e99aded9bfde1e1298ee3f0c549f757e281f363f85109766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe36a5929aef41627ca1ea92aff6b13a051703c2be31e1f1e3189dab88cd6ea60378ed3abe3abbada50cbd7600755d2502bac1e3f111b2ecd67e3ccabf2f7805
|
7
|
+
data.tar.gz: b42cada76579804a7a61e4b98a1603e1ce676ac680dde921cd441167c9504c84d3deca93f13ee1424cf524fe086f684faea2b419e87dc53ac1e4c2f4772bd6a0
|
data/README.md
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
class Lockstep::ApiKey < Lockstep::ApiRecord
|
2
|
+
self.model_name_uri = "v1/ApiKeys"
|
3
|
+
self.id_ref = "api_key_id"
|
4
|
+
load_schema(Schema::ApiKey)
|
5
|
+
|
6
|
+
default_scope { where('Revoked is null') }
|
7
|
+
|
8
|
+
# Create method to override conventional create in lockstep/api_record.rb of sending attrs as an enclosed array
|
9
|
+
def create
|
10
|
+
attrs = attributes_for_saving.transform_keys { |key| key.camelize(:lower) }
|
11
|
+
resp = resource.post('', body: attrs, params: nil)
|
12
|
+
result = post_result(resp)
|
13
|
+
end
|
14
|
+
end
|
@@ -5,15 +5,15 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
8
|
+
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
9
9
|
# added to the Lockstep platform.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :webhook_id
|
13
13
|
|
14
|
-
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
15
|
-
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
16
|
-
#
|
14
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
15
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
16
|
+
#
|
17
17
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
18
18
|
# @type: string
|
19
19
|
# @format: uuid
|
@@ -31,7 +31,7 @@ end
|
|
31
31
|
# @type: string
|
32
32
|
field :status_message
|
33
33
|
|
34
|
-
# An secret set during webhook creation that can be used to verify that the notification
|
34
|
+
# An secret set during webhook creation that can be used to verify that the notification
|
35
35
|
# is coming from the Lockstep API.
|
36
36
|
# @type: string
|
37
37
|
field :client_secret
|
@@ -44,17 +44,17 @@ end
|
|
44
44
|
# @type: string
|
45
45
|
field :callback_http_method
|
46
46
|
|
47
|
-
# The URL where the notification will be sent via the method set in CallbackHttpMethod.
|
48
|
-
#
|
49
|
-
# When creating a webhook, the Lockstep API will make a call to this url via the method
|
50
|
-
# set in the CallbackHttpMethod property with a query parameter of "code" set to an encoded
|
51
|
-
# string. To successfully create the webhook, the call must return a successful status code
|
47
|
+
# The URL where the notification will be sent via the method set in CallbackHttpMethod.
|
48
|
+
#
|
49
|
+
# When creating a webhook, the Lockstep API will make a call to this url via the method
|
50
|
+
# set in the CallbackHttpMethod property with a query parameter of "code" set to an encoded
|
51
|
+
# string. To successfully create the webhook, the call must return a successful status code
|
52
52
|
# with the query parameter's value as the plain text content.
|
53
53
|
# @type: string
|
54
54
|
# @format: uri
|
55
55
|
field :callback_url
|
56
56
|
|
57
|
-
# The expiration date for the given webhook subscription. Once the expiration date passes,
|
57
|
+
# The expiration date for the given webhook subscription. Once the expiration date passes,
|
58
58
|
# notifications will no longer be sent to the callback url.
|
59
59
|
# @type: string
|
60
60
|
# @format: date-time
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockstep_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vivek AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -46,6 +46,7 @@ files:
|
|
46
46
|
- app/concepts/lockstep/relation_array.rb
|
47
47
|
- app/helpers/types.rb
|
48
48
|
- app/models/lockstep/account.rb
|
49
|
+
- app/models/lockstep/api_key.rb
|
49
50
|
- app/models/lockstep/app_enrollment.rb
|
50
51
|
- app/models/lockstep/connection.rb
|
51
52
|
- app/models/lockstep/contact.rb
|