Documentation
¶
Overview ¶
Package identity carries the verified viewer of a request in its context, with the viewer's token and, while serving a call from another app, that app.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCaller ¶
WithCaller returns a copy of ctx carrying the app whose call is being served.
Types ¶
type Identity ¶
Identity is a viewer verified by the company login. The zero Identity has no roles or groups.
func From ¶
From returns a copy of the identity carried by ctx, or the zero Identity. Changing the copy does not change what ctx carries.
func (Identity) Authenticated ¶
Authenticated reports whether this is a verified viewer rather than the zero Identity.
Click to show internal directories.
Click to hide internal directories.