learnosity_auth_poc

command module
v0.0.0-...-1b2bb57 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Unlicense Imports: 10 Imported by: 0

README

Learnosity API GoLang Auth Client

Very light POC to auth with the sample Learnosity question over local HTTP or AWS Lambda.

Built for the Serverless framework using a Lambda API router.

Requirements

Working local src root with GoLang modules enabled.

Working copy of a Learnosity auth API client somewhere else if you want to validate the hash output for the auth part.

Steps to run
  1. cp .env.example .env
  2. make run

You can override sessionID, userID, and timestamp in order to generate predictable outputs for the hash function.

This allows you to modify your local code while still trying to generate the same timestamp over and over.

This is necessary because the current UTC minute is used in the hash so it that keeps changing or is generated dynamically you will always be trying to hit a moving target with your hash output / calculation.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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