8000 GitHub - 1EdTech/basiclti-util-java at fix_current_version
[go: up one dir, main page]

Skip to content

1EdTech/basiclti-util-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigatio 97E8 n

#IMS Global - LTI™ Utilities

Build Status

What is it?

LTI™ Utilities are a set of utility classes to aid in the development of LTI v1.0 consumers and providers. They deal with much of the heavy lifting and make the process more opaque to the developer.

How to use:

With Maven:
Include in your project's pom.xml:

<dependency>
  <groupId>org.imsglobal</groupId>
  <artifactId>basiclti-util</artifactId>
  <version>1.1.1</version>
</dependency>

Examples:

LTI Producer:

Spring Controller (LTI Producer):

@Lti
@RequestMapping(value = "/lti", method = RequestMethod.POST)
public String ltiEntry(HttpServletRequest request, LtiVerificationResult result) {
    if(!result.getSuccess()){
        return "error";
    } else {
        return "success";
    }
}

KeyService Implementation:

public class MockKeyService implements LtiKeySecretService {
    public String getSecretForKey(String key) {
        return "secret";
    }
}

Spring Context xml:

<aop:aspectj-autoproxy/>

<bean id="myAspect" class="org.imsglobal.aspect.LtiLaunchVerifier">
    <constructor-arg>
        <bean class="com.example.MockKeyService"/>
    </constructor-arg>
</bean>

How to Contribute:

  1. Fork the repo
  2. Add changes
  3. Send a pull request with those changes

TODO List:

  • Write Unit tests for LTI Consumer code
  • Write Unit tests for LTI 2 code

© 2014 IMS Global Learning Consortium, Inc. All Rights Reserved.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages

0