Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Shared services for the lms-canvas LTI tools to talk to Canvas

License

Notifications You must be signed in to change notification settings

indiana-university/lms-canvas-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LMS Canvas Services

When this library is added to a project it allows for Canvas services to be autowired.

Installation

From Maven

Add the following as a dependency in your pom.xml

<dependency>
    <groupId>edu.iu.uits.lms</groupId>
    <artifactId>lms-canvas-services</artifactId>
    <version><!-- latest version --></version>
</dependency>

You can find the latest version in Maven Central.

Setup Examples

Include annotation to enable to the configs

Add to any configuration class, or even the main application class @EnableCanvasClient.

Once that has been done, you can autowire in and use any canvas service.

Configuration

If choosing to use properties files for the configuration values, the default location is /usr/src/app/config, but that can be overridden by setting the app.fullFilePath value via system property or environment variable.

Canvas Configuration

The following properties need to be set to configure the communication with Canvas and Canvas Catalog. They can be set in a security.properties file, or overridden as environment variables.

Property Default Value Description
canvas.host Hostname of the Canvas instance
canvas.baseUrl https://${canvas.host} Base URL of the Canvas instance
canvas.baseApiUrl ${canvas.baseUrl}/api/v1 Base URL for the Canvas API
canvas.token Token for access to Canvas instance
canvas.accountId Your institution's root accountId in your Canvas instance
catalog.baseUrl Base URL of the Canvas Catalog instance
catalog.baseApiUrl ${catalog.baseUrl}/api/v1 Base URL for the Canvas Catalog API
catalog.token Token for access to the Canvas Catalog instance

About

Shared services for the lms-canvas LTI tools to talk to Canvas

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  

Languages