utils

package
v0.0.0-...-3a465d4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(logger *shim.ChaincodeLogger, auth string) error

func GetAccountIDFromToken

func GetAccountIDFromToken(logger *shim.ChaincodeLogger, auth string) (string, error)

Types

type ExtendedJwsClaimSet

type ExtendedJwsClaimSet struct {
	*jws.ClaimSet
	AaccessTokenHash string `json:"at_hash"`
	CustomRoles      string `json:"custom:roles"`
	EventID          string `json:"event_id"`
	TokenUse         string `json:"token_use"`
	AuthTime         int    `json:"auth_time"`
	CognitoUserName  string `json:"cognito:username"`
}

ExtendedJwsClaimSet extends JwsClaimSet

type JOSEHeader

type JOSEHeader struct {
	Kid string `json:"kid"`
	Alg string `json:"alg"`
}

Jump to

Keyboard shortcuts

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