Categorygithub.com/jamesrr39/go-token
modulepackage
0.0.0-20220928054553-a34ed3a020db
Repository: https://github.com/jamesrr39/go-token.git
Documentation: pkg.go.dev

# README

go-token

go-token is a package (and sub-packages) providing functions for getting up and running with long-term access tokens.

try it out with the examples folder, e.g.: go run examples/simple_no_db/simple-no-db-main.go

For root tokens (one "master" token)

  • A Small program to generate a base64-encoded root token and the base64 encoded hash for it
  • It provides a middleware for authorizing root tokens

For auth tokens (many tokens)

  • Web service to create auth tokens
  • Middleware for authorizing token
  • Helper functions for retrieving token ID and account ID from the request context

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

CheckHasRole checks if a user has a given role.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author