atomic_lti 1.8.0 → 1.8.1

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: 9657315417130b6c1e170190e55603fff1aa97f2285518fa47645b6586b63c64
4
- data.tar.gz: 5cc81825d70b45eb8d2de538b60ead7ac77742bf57f974762e9ab199d9101004
3
+ metadata.gz: c5a9ab9e61066b4cf5a463e83db17a6ffbded2fce44251b5506dbfb7a385d1df
4
+ data.tar.gz: 1922245e4850a6f2baa0cf7cd44a6ae05c3d2937ee957c8ddca46299fa10d302
5
5
  SHA512:
6
- metadata.gz: 32921bce5874ad6e3066c14f2bc984747efc06fcfb229cb43c4e8fe13026823ff42b1d5582e677d27832b3d88735cdc1e0317e7d962020b6a2b380134bbf6802
7
- data.tar.gz: e0255a4a3671f6ab6d56041179c28592f088d61f67d1c07632f374aba83657bb7831f94e6ba241fc4467ae0c0122885dd8d22a7578365e49714b432fb7ce5b00
6
+ metadata.gz: 8e1506ff8b48c8b65164be73cf73408a102af3235f6b1a241068ddca74c57bf8b5c7241e7f5308bf3152a2e6e3bb5288afc7c32aa36d2ef95f896e5ed62bf4ed
7
+ data.tar.gz: 6a114eefe55c0337690997eaa274685eb3025956a1ac82927c595cd6d716436a1ac2384a2155d568eece1fa002a96e0faa4c3226c9f0c6eb64bcb1328bdeaca7
@@ -119,6 +119,7 @@ module AtomicLti
119
119
  def self.request_token_uncached(iss:, deployment_id:, scopes:)
120
120
  # Details here:
121
121
  # https://www.imsglobal.org/spec/security/v1p0/#using-json-web-tokens-with-oauth-2-0-client-credentials-grant
122
+ puts "GETTING TOKEN"
122
123
  body = {
123
124
  grant_type: "client_credentials",
124
125
  client_assertion_type: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
@@ -2,8 +2,9 @@ module AtomicLti
2
2
  module Services
3
3
  class NamesAndRoles < AtomicLti::Services::Base
4
4
 
5
- def initialize(id_token_decoded:)
6
- super(id_token_decoded: id_token_decoded)
5
+ def initialize(id_token_decoded: nil, iss: nil, deployment_id: nil, context_memberships_url: nil)
6
+ @context_memberships_url = context_memberships_url || id_token_decoded.dig(AtomicLti::Definitions::NAMES_AND_ROLES_CLAIM, "context_memberships_url")
7
+ super(id_token_decoded:, iss:, deployment_id:)
7
8
  end
8
9
 
9
10
  def scopes
@@ -1,6 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
3
  <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
5
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
5
6
  <%= stylesheet_link_tag "atomic_lti/launch" %>
6
7
  </head>
@@ -13,7 +14,7 @@
13
14
  </p>
14
15
  </div>
15
16
  </noscript>
16
- <form action="<%= @launch_url -%>" method="POST">
17
+ <form action="<%= @launch_url -%>" method="POST" accept-charset="UTF-8">
17
18
  <% @launch_params.each do |name, value| -%>
18
19
  <%= hidden_field_tag(name, value) %>
19
20
  <% end -%>
@@ -1,3 +1,3 @@
1
1
  module AtomicLti
2
- VERSION = "1.8.0".freeze
2
+ VERSION = "1.8.1".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.0
4
+ version: 1.8.1
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-01-26 00:00:00.000000000 Z
13
+ date: 2024-03-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pg