learningtapestry / canvas-google-drive-connector

An open source plugin for Instructure Canvas to connect to Google Drive.
GNU General Public License v3.0
7 stars 4 forks source link

Known Vulnerabilities

CanvasLMS / GoogleDrive integration

Simple LTI app for providing google-drive integration into CanvasLMS

Features:

Getting Started

This app uses:

1) Create a Google app on the Google Developer Console.

2) Enable access to the Drive API for the newly created Google app

3) Create credentials for accessing the Google app

4) Go to the "Domain verification" tab and verify the domain this app is running on.

To configure this app with your new credentials, first create your .env file by running cp .env.template .env and then modify with your new Google credentials:

SESSION_SECRET=[Generate a string here with SecureRandom.hex(32)]
GOOGLE_KEY=[Your Google client ID]
GOOGLE_SECRET=[Your Google client secret]

Install dependencies and create the database:

bundle install
bundle exec rake db:create db:migrate

For deploying (not development) you should also precompile assets: bundle exec rake assets:clean assets:precompile

Run

For running the server: ruby app.rb

you can have an interactive console with the app configured and imported, using: bundle exec rake console

Launching from Canvas LMS

To launch the Google Drive Connector app from a Canvas instance, see this wiki:

https://github.com/learningtapestry/canvas-google-drive-connector/wiki/Configuring-the-LTI-application

tests

uses Rspec: bundle exec rspec

you can check the coverage report on coverage/index.html

API

Config

Credentials management

Google Oauth2

used internally

LTI endpoints

All LTI launch requests are done via POST

LICENSE

This project is licensed under GPL3