atomic_lti 1.8.2 → 1.8.3

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: f26fbc20460c3777fce4b8f4302da1bbfc22f7634f4a5bdec6cfafe7aed02aea
4
- data.tar.gz: 6b7c7dcf961b31d74b7345c097061178e590661eabbc931babf40bcf3b8c484c
3
+ metadata.gz: 89a9c7396e05d12765f64f866f1708eb07d66e5088798e20e5357cf9c92bce4d
4
+ data.tar.gz: fb98ae12559896877d54bdb0e13526005198efc04d72004181236d99010289dd
5
5
  SHA512:
6
- metadata.gz: fce094f7646c8ed322ea8675ddb70bc6f86049335ff8af4bda4eb2789c29cf1c9e21a8f536cfc7f84a90c290f3b0e5673b1eb9c4210a078bf87c66ffc093bf83
7
- data.tar.gz: b2e027cf1002f2db06f3b345e3c9c8a5cc76dbdaab866b86082cfa4442e37d10e36367b81914d16d093d4748915ce3a68046dd69745ba9bf52bee5432c6c6279
6
+ metadata.gz: 47096d099f5370ff31d83d0e4365e78b7f6663528591bebb8d25540c10ff06fbf99be694178cca009ff825e72d8b58c37bb283b5b081c81c5728377978ea92bb
7
+ data.tar.gz: 07112ad65fa251c9191e639fe4ad8d56c2fcccf4160b8e4c3b5c94ebb85f11b4e4c23c4b7f8a9cb1fff2ea492919eb5db3caee948bf03bf78d3d88bf80dabf72
@@ -64,7 +64,7 @@ module AtomicLti
64
64
  payload = {
65
65
  iss: install.client_id, # A unique identifier for the entity that issued the JWT
66
66
  sub: install.client_id, # "client_id" of the OAuth Client
67
- aud: platform.token_url, # Authorization server identifier
67
+ aud: [platform.authorization_server || platform.token_url], # Authorization server identifier
68
68
  iat: Time.now.to_i, # Timestamp for when the JWT was created
69
69
  exp: Time.now.to_i + 300, # Timestamp for when the JWT should be treated as having expired
70
70
  # (after allowing a margin for clock skew)
@@ -0,0 +1,5 @@
1
+ class AddPlatformAuthorizationServer < ActiveRecord::Migration[7.0]
2
+ def change
3
+ add_column :atomic_lti_platforms, :authorization_server, :string
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module AtomicLti
2
- VERSION = "1.8.2".freeze
2
+ VERSION = "1.8.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomic_lti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Petro
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-04-26 00:00:00.000000000 Z
13
+ date: 2024-06-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pg
@@ -105,6 +105,7 @@ files:
105
105
  - db/migrate/20220503003528_create_atomic_lti_jwks.rb
106
106
  - db/migrate/20221010140920_create_open_id_state.rb
107
107
  - db/migrate/20230726040941_add_state_to_open_id_state.rb
108
+ - db/migrate/20240612163118_add_platform_authorization_server.rb
108
109
  - db/seeds.rb
109
110
  - lib/atomic_lti.rb
110
111
  - lib/atomic_lti/engine.rb