jwtea

command module
v0.0.0-...-bca306c Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2016 License: MIT Imports: 11 Imported by: 0

README

JWTea

Go Report Card

Simple HTTP service for user auth with json web tokens.

Create

To create a user simply post to /create with a username and password, JWTea will parse the information and generate a new user for you.

POST /create

Body {
  "username": "awaseem",
  "password": "shhh!"
}

Login

To login post to /login with the username and password of an existing user, JWTea will parse the username and password and send you back the information.

POST /decode

Body {
  "username": "awaseem",
  "password": "shhh!"
}

Check

To check a token to see if it's valid, post to /check and JWTea will send a 200 if success otherwise it failed!

POST /check

Body {
  "token": "sdfjsdfjdsfkljsdfkldsjlksfjsdf"
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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