atomic_tenant 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20240704002449_add_atomic_tenant_lti_deployment_platform_notification_status.rb +5 -0
- data/lib/atomic_tenant/canvas_content_migration.rb +3 -7
- data/lib/atomic_tenant/current_application_instance_middleware.rb +1 -1
- data/lib/atomic_tenant/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 808ad277b02991ebd291091c8a7860c7259f23f41c7c655d955ce2c695b1e146
|
4
|
+
data.tar.gz: 18352f6b7e39868e2c643270e58a0b3f061307cf8cde82b1a6e6a593e9c3ce99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3bb1027a5ef7fe143c836928cbab6b66034291d2b890ec575097baccdb0522d5abca5ccb551c01f544aa129dc9a54e2c807533612bca729b0be8ba616893199
|
7
|
+
data.tar.gz: 73ed098c9acaee8b25fb6199031334ad67ec6d074d7b19c81e1a4810271e311fd81f9042de819d59ceeb2319cc8ed06b549ab5c0cb352e7d4dbf72e0e6afaa00
|
@@ -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
|
-
|
16
|
-
|
17
|
-
|
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
|
-
|
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)
|
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.
|
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:
|
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.
|
91
|
+
rubygems_version: 3.1.6
|
91
92
|
signing_key:
|
92
93
|
specification_version: 4
|
93
94
|
summary: Summary of AtomicTenant.
|