processor

package
v0.0.0-...-22bf50c Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtProcessor

type JwtProcessor interface {
	Process(t *jwt.Token, timeBase time.Time) (*TokenInfo, error)
}

type TokenInfo

type TokenInfo struct {
	AccessToken   string            `json:"access_token"`
	RefreshToken  string            `json:"refresh_token,omitempty"`
	UID           string            `json:"uid"`
	GrantType     string            `json:"grant_type"`
	Scope         []string          `json:"scope"`
	Realm         string            `json:"realm"`
	ClientId      string            `json:"client_id"`
	TokenType     string            `json:"token_type"`
	ExpiresIn     int               `json:"expires_in"`
	PrivateClaims map[string]string `json:"-"`
}

TokenInfo type is used to serialize a JWT validation result in a standard Token Info JSON format

Jump to

Keyboard shortcuts

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