tanker-core 2.28.0 → 2.29.0.beta.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09b3f86b9eae242df4abc44934efdddf6b64bae8a4f389c79f17d009fd3307bd'
4
- data.tar.gz: 7b0a42714a1ba9066b986c1a086e8d469e14f8354f7a6d5215a24505a4382ad8
3
+ metadata.gz: 30ade20271ff79aab3b5e4cac89b4ad0ec0a9c40b0a23fcd8d083a9bd0eff825
4
+ data.tar.gz: d269a00d106823f6a28041bee3b9f462b98ef6cf488126fbeb54be1a02dc29be
5
5
  SHA512:
6
- metadata.gz: 369ac1a732634efc37dafa2d694105085be12e2f039a43fae970bcebf1b17ff3f887573960486b25b1021aef6b081c7f7512d9fcfa9c68f5593a938d00618276
7
- data.tar.gz: 1c6ea96818227094a3aa1776ba77eb4c93ff7d29d97d45f6aac818737a1fa6bc131f773b6ce89b1956909699b5ee37c1709ca881ab2a255c9396b5aa90a6c6f1
6
+ metadata.gz: c88868524f7818f1c56cf1371b2eead1641195bed3333bd7fa03e974c5dcdcfa1729402ea52aa0d9030952bb315047a774b8d8678f8078392989e00e15dcc2cd
7
+ data.tar.gz: fc1375548c97c192aeb63168fa4be5c7a096252c5329c17a084d81c47725abf08030ef54564ea8b56aabf9be5daa48ef167ab23a914027a2af4cdeb639cec57d
@@ -16,7 +16,7 @@ module Tanker
16
16
  # NOTE: We use those CFutures with the tanker_future_* functions exposed by CTanker,
17
17
  # this is safe because we only do simple synchronous blocking calls, without using tanker_future_then.
18
18
 
19
- attach_function :tanker_admin_connect, [:string, :string], CTanker::CFuture
19
+ attach_function :tanker_admin_connect, [:string, :string, :string], CTanker::CFuture
20
20
  attach_function :tanker_admin_create_app, [:admin_pointer, :string], CTanker::CFuture
21
21
  attach_function :tanker_admin_delete_app, [:admin_pointer, :string], CTanker::CFuture
22
22
  attach_function :tanker_admin_destroy, [:admin_pointer], CTanker::CFuture
data/lib/tanker/admin.rb CHANGED
@@ -8,17 +8,18 @@ require_relative 'admin/app'
8
8
 
9
9
  module Tanker
10
10
  class Admin
11
- def initialize(admin_url:, api_url:, trustchain_url:, id_token:)
12
- @admin_url = admin_url
13
- @id_token = id_token
11
+ def initialize(app_management_token:, app_management_url:, api_url:, environment_name:, trustchain_url:)
12
+ @app_management_token = app_management_token
13
+ @app_management_url = app_management_url
14
14
  @api_url = api_url
15
+ @environment_name = environment_name
15
16
  @trustchain_url = trustchain_url
16
17
  end
17
18
 
18
19
  # Authenticate to the Tanker admin server API
19
20
  # This must be called before doing any other operation
20
21
  def connect
21
- @cadmin = CAdmin.tanker_admin_connect(@admin_url, @id_token).get
22
+ @cadmin = CAdmin.tanker_admin_connect(@app_management_url, @app_management_token, @environment_name).get
22
23
  cadmin_addr = @cadmin.address
23
24
  ObjectSpace.define_finalizer(@cadmin) do |_|
24
25
  CAdmin.tanker_admin_destroy(FFI::Pointer.new(:void, cadmin_addr)).get
@@ -52,6 +52,9 @@ module Tanker
52
52
  blocking_attach_function :tanker_device_id, [:session_pointer], CFuture
53
53
  blocking_attach_function :tanker_get_device_list, [:session_pointer], CFuture
54
54
 
55
+ blocking_attach_function :tanker_create_oidc_nonce, [:session_pointer], CFuture
56
+ blocking_attach_function :tanker_set_oidc_test_nonce, [:session_pointer, :string], CFuture
57
+
55
58
  blocking_attach_function :tanker_attach_provisional_identity, [:session_pointer, :string], CFuture
56
59
  blocking_attach_function :tanker_verify_provisional_identity, [:session_pointer, CVerification], CFuture
57
60
 
@@ -72,6 +72,14 @@ module Tanker
72
72
  CTanker.tanker_stop(@ctanker).get
73
73
  end
74
74
 
75
+ def create_oidc_nonce
76
+ CTanker.tanker_create_oidc_nonce(@ctanker).get_string
77
+ end
78
+
79
+ def _oidc_test_nonce=(nonce)
80
+ CTanker.tanker_set_oidc_test_nonce(@ctanker, nonce).get
81
+ end
82
+
75
83
  def status
76
84
  CTanker.tanker_status(@ctanker)
77
85
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Tanker
4
4
  class Core
5
- VERSION = '2.28.0'
5
+ VERSION = '2.29.0.beta.1'
6
6
 
7
7
  def self.native_version
8
8
  CTanker.tanker_version_string
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tanker-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.28.0
4
+ version: 2.29.0.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanker team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-07 00:00:00.000000000 Z
11
+ date: 2022-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -187,9 +187,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
187
  version: 2.6.0
188
188
  required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  requirements:
190
- - - ">="
190
+ - - ">"
191
191
  - !ruby/object:Gem::Version
192
- version: '0'
192
+ version: 1.3.1
193
193
  requirements: []
194
194
  rubygems_version: 3.0.3.1
195
195
  signing_key: