Skip to content

yangLiu57670838/OAuth_Signature_Creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

oauth_signature_builder

A small library that build oauth_signature for lti usage

Installation

npm install @yangliu57670838/oauth_signature_builder

Usage

var OAuth_Signature_Creator = require('@yangliu57670838/oauth_signature_builder');

const signature = this.signatureBuilder(req, secret);

if (!signature === req.body.oauth_signature) {
    reject('Invalid OAuth signature');
  }

Information

  • This function is for Lti Usage, so the base string and key are hashed with HMAC-SHA1
  • This method only takes course secret and request body as parameters
  • You need to install Node.js, Express, Crypto, url before using this module

About

Node.js oauth_signature builder for LTI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published