Skip to content

badlopo/bad_auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bad Auth Kit

A very simple MAC token implementation that lacks the following capabilities:

  • Some degree of replay protection
  • Revocation of issuance (via blacklist/JTI)
  • Opaque payload (custom parts can still be opaque as long as they are encrypted before being passed in)
  • Separation of issuance and verification

It uses the HS256 algorithm, with the user providing the SECRET. The payload includes a field for optional custom data ( requiring implementation of Serialize+Deserialize). It provides basic functions such as encoding, decoding, and refreshing.

Usage

refer to unit_test

About

A very simple MAC token implementation for single-end verification only.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages