lti_utils

package
v0.0.0-...-e7a1876 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2021 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Overview

Package lti_utils provides ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LTIConfigHandler

func LTIConfigHandler(w http.ResponseWriter, r *http.Request)

Types

type Cartridge

type Cartridge struct {
	Title           string `xml:"blti:title"`
	Description     string `xml:"blti:description"`
	LaunchUrl       string `xml:"blti:launch_url"`
	SecureLaunchUrl string `xml:"blti:secure_launch_url"`
	Icon            string `xml:"blti:icon"`
}

type LTIConfig

type LTIConfig struct {
	Cartridge Cartridge `xml:"cartridge_basiclti_link"`
	Blti      string    `xml:"xmlns:blti,attr"`
}

type LTIConnector

type LTIConnector struct {
	DB        *gorm.DB
	TokenAuth *jwtauth.JWTAuth
}

func (*LTIConnector) LTILaunch

func (l *LTIConnector) LTILaunch(w http.ResponseWriter, r *http.Request)

LTILaunch Performs a search in database for a course with the given ID and returns a invitation.

type LTIUserInfos

type LTIUserInfos struct {
	// maybe this gets to be a satori.UUID
	ID                 string
	UserName           string
	PersonGivenName    string
	PersonPrimaryEmail string
	PersonFamilyName   string
}

export later?

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL