claims

package
v0.0.0-...-78e7222 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextualiseFilter

func ContextualiseFilter(filter bson.M, claimsToAdd Claims) bson.M

Types

type Claims

type Claims interface {
	Type() Type
	Expired() bool
	TimeToExpiry() time.Duration
	PartyDetails() party.Details
}

type Type

type Type string
const APIUserLogin Type = "APIUserLogin"
const HumanUserLogin Type = "HumanUserLogin"
const RegisterClientAdminUser Type = "RegisterClientAdminUser"
const RegisterClientUser Type = "RegisterClientUser"
const RegisterCompanyAdminUser Type = "RegisterCompanyAdminUser"
const RegisterCompanyUser Type = "RegisterCompanyUser"
const ResetPassword Type = "ResetPassword"
const SigfoxBackend Type = "SigfoxBackend"

Jump to

Keyboard shortcuts

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