atomic_tenant 1.2.1 → 1.3.0

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: 6e57d91be8f21aae13497dd47d5f8994255db2ed06c8ca4a56d5146f7e6c5f41
4
- data.tar.gz: 50e61c38f180111756a40610dfa4b393c6338502cf6a44f6bb6d3990b8e5a003
3
+ metadata.gz: 808ad277b02991ebd291091c8a7860c7259f23f41c7c655d955ce2c695b1e146
4
+ data.tar.gz: 18352f6b7e39868e2c643270e58a0b3f061307cf8cde82b1a6e6a593e9c3ce99
5
5
  SHA512:
6
- metadata.gz: d47e3b7877366c0d0c4ed86c077855cb782ab61dacc8cece23a64340bae92272b7dade2fb29d39870fe2efce38594b08e9e840011a762634f1c7240a2ddab58b
7
- data.tar.gz: 83a990b687230361365f9708795bef710e88ef0c7651685459458531bd3e75aa60798e25ead2af5fe3f7f5b8d2f0d4ce066e4c222aadd71d1be4db3551ba4876
6
+ metadata.gz: a3bb1027a5ef7fe143c836928cbab6b66034291d2b890ec575097baccdb0522d5abca5ccb551c01f544aa129dc9a54e2c807533612bca729b0be8ba616893199
7
+ data.tar.gz: 73ed098c9acaee8b25fb6199031334ad67ec6d074d7b19c81e1a4810271e311fd81f9042de819d59ceeb2319cc8ed06b549ab5c0cb352e7d4dbf72e0e6afaa00
@@ -0,0 +1,5 @@
1
+ class AddAtomicTenantLtiDeploymentPlatformNotificationStatus < ActiveRecord::Migration[7.1]
2
+ def change
3
+ add_column :atomic_tenant_lti_deployments, :registered_pns_notifications_at, :timestamptz
4
+ end
5
+ end
@@ -12,13 +12,9 @@ module AtomicTenant
12
12
  unverified = JWT.decode(token, nil, false)
13
13
  kid = unverified[HEADER]["kid"]
14
14
  app_instance = ApplicationInstance.find_by!(lti_key: kid)
15
- decoded_token = JWT.decode(
16
- token,
17
- app_instance.lti_secret,
18
- true,
19
- { algorithm: algorithm },
20
- )
21
- [decoded_token, app_instance]
15
+ # We don't validate because we're only setting the tenant for the request. The app
16
+ # must validate the JWT.
17
+ app_instance
22
18
  end
23
19
  end
24
20
  end
@@ -53,7 +53,7 @@ module AtomicTenant
53
53
  env['atomic.validated.application_instance_id'] = instance.id
54
54
  end
55
55
  elsif canvas_migration_hook?(request)
56
- _token, app_instance = AtomicTenant::CanvasContentMigration.decode(encoded_token(request))
56
+ app_instance = AtomicTenant::CanvasContentMigration.decode(encoded_token(request))
57
57
  env['atomic.validated.application_instance_id'] = app_instance.id
58
58
  elsif encoded_token(request).present?
59
59
  token = encoded_token(request)
@@ -1,3 +1,3 @@
1
1
  module AtomicTenant
2
- VERSION = '1.2.1'
2
+ VERSION = '1.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomic_tenant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Benoit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-20 00:00:00.000000000 Z
11
+ date: 2024-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: atomic_lti
@@ -56,6 +56,7 @@ files:
56
56
  - db/migrate/20220816154357_create_atomic_tenant_lti_deployments.rb
57
57
  - db/migrate/20220816174344_create_atomic_tenant_pinned_platform_guids.rb
58
58
  - db/migrate/20220816223258_create_atomic_tenant_pinned_client_ids.rb
59
+ - db/migrate/20240704002449_add_atomic_tenant_lti_deployment_platform_notification_status.rb
59
60
  - lib/atomic_tenant.rb
60
61
  - lib/atomic_tenant/canvas_content_migration.rb
61
62
  - lib/atomic_tenant/current_application_instance_middleware.rb
@@ -87,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
88
  - !ruby/object:Gem::Version
88
89
  version: '0'
89
90
  requirements: []
90
- rubygems_version: 3.4.19
91
+ rubygems_version: 3.1.6
91
92
  signing_key:
92
93
  specification_version: 4
93
94
  summary: Summary of AtomicTenant.