Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustFromTokenContext ¶
func NewContext ¶
NewContext returns a new Context carrying an Identity pat.
Types ¶
type Identity ¶
type Identity struct { Pid string `json:"pid"` Idp string `json:"idp"` Email string `json:"email"` DisplayName string `json:"email"` }
func FromContext ¶
FromContext extracts the Identity pat from ctx, if present.
func MustFromContext ¶
MustFromContext extracts the identity from ctx. If not present it panics.
func ParseToken ¶
Click to show internal directories.
Click to hide internal directories.