Documentation ¶
Overview ¶
Package oauthid implements OAuth client ID allowlist check.
Index ¶
Constants ¶
View Source
const GoogleAPIExplorerClientID = "292824132082.apps.googleusercontent.com"
Well-known OAuth client_id of https://apis-explorer.appspot.com/.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allowlist ¶
Allowlist is OAuth client ID allowlist.
func NewAllowlist ¶
NewAllowlist creates new populated client ID allowlist.
func (Allowlist) IsAllowedOAuthClientID ¶
IsAllowedOAuthClientID returns true if the given OAuth2 client ID can be used to authorize access from the given email.
Click to show internal directories.
Click to hide internal directories.