jwt

package
v0.0.0-...-df3db6e Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuther

func NewAuther(key *rsa.PrivateKey, registry oauth.AuthRegistry) auth.Auther

The one and only Auther. Please create these keypair with openssl or something else. Another option is to let orca generate them.

func RegisterBackend

func RegisterBackend(name string, be AuthBackend)

register a backend service for the given network name

Types

type AuthBackend

type AuthBackend interface {
	Get(token string) (*auth.AuthUser, error)
}

A backend must parse a token and return an AuthUser

Jump to

Keyboard shortcuts

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