Sha256: 4e3657c8ba4690f4e2d6dd404e507758d9768ae8ad8863cc24c9683091a3df94

Contents?: true

Size: 434 Bytes

Versions: 4

Compression:

Stored size: 434 Bytes

Contents

module CanvasOauth
  class CanvasApiExtensions
    def self.build(canvas_url, user_id, tool_consumer_instance_guid)
      refresh_token = CanvasOauth::Authorization.fetch_refresh_token(user_id, tool_consumer_instance_guid)
      token = CanvasOauth::Authorization.fetch_token(user_id, tool_consumer_instance_guid)
      CanvasApi.new(canvas_url, user_id, token, refresh_token, CanvasConfig.key, CanvasConfig.secret)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
qalam_oauth_engine-3.0.2 lib/canvas_oauth/canvas_api_extensions.rb
qalam_oauth_engine-3.0.1 lib/canvas_oauth/canvas_api_extensions.rb
qalam_oauth_engine-3.0.0 lib/canvas_oauth/canvas_api_extensions.rb
qalam_oauth_engine-2.2.9 lib/canvas_oauth/canvas_api_extensions.rb