From 4c36281cb42b0c0062449a66fc24609dc856ba02 Mon Sep 17 00:00:00 2001 From: Jesus Federico Date: Wed, 27 Sep 2023 13:30:34 -0400 Subject: [PATCH] LTI-259: include scope in omniauth authenticator (#244) --- app/controllers/concerns/omniauth_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/concerns/omniauth_helper.rb b/app/controllers/concerns/omniauth_helper.rb index 94803cb6..4850361f 100644 --- a/app/controllers/concerns/omniauth_helper.rb +++ b/app/controllers/concerns/omniauth_helper.rb @@ -29,6 +29,7 @@ def omniauth_client_token(lti_broker_url) grant_type: 'client_credentials', client_id: Rails.configuration.omniauth_key, client_secret: Rails.configuration.omniauth_secret, + scope: 'api', } response = RestClient.post("#{lti_broker_url}/oauth/token", oauth_options) JSON.parse(response)['access_token']