Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct {
// contains filtered or unexported fields
}
AccessToken is the definition of an Access Token
func NewAccessToken ¶
func NewAccessToken(uaaPublicKey string, uaaSymmetricVerificationKey string) AccessToken
NewAccessToken creates a new access token
func (AccessToken) CheckPublicToken ¶
func (accessToken AccessToken) CheckPublicToken() error
CheckPublicToken checks the validity of the public token
func (AccessToken) DecodeToken ¶
func (accessToken AccessToken) DecodeToken(userToken string, desiredPermissions ...string) error
DecodeToken checks if a userToken has the desired permissionss
type NullToken ¶
type NullToken struct{}
NullToken is a token used in develop mode
func (NullToken) CheckPublicToken ¶
CheckPublicToken for a null token the public token will never return an error
Click to show internal directories.
Click to hide internal directories.