authorisation

package
v0.0.0-...-efac5d2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRequestTokenCreator

type IRequestTokenCreator interface {
	Create(string, string, string, string) (string, error)
}

IRequestTokenCreator - Creates a authorisation token that is appended to request as header

type JWTReqestTokenCreator

type JWTReqestTokenCreator struct {
	// contains filtered or unexported fields
}

JWTReqestTokenCreator - JWT implementation of IRequestTokenCreator

func (*JWTReqestTokenCreator) Create

func (j *JWTReqestTokenCreator) Create(resourcePath string, body string, issuer string, secret string) (string, error)

Create - Creates a JWT token. JwtTokenCreator uses HMAC-SHA256 signature, by default.

Jump to

Keyboard shortcuts

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