Back to

Package oauthid

Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module:


Package oauthid implements OAuth client ID whitelist check.



const GoogleAPIExplorerClientID = ""

Well-known OAuth client_id of

type Whitelist

type Whitelist struct {

Whitelist is OAuth client ID whitelist.

func NewWhitelist

func NewWhitelist(primaryID string, additionalIDs []string) Whitelist

NewWhitelist creates new populated client ID whitelist.

func (Whitelist) IsAllowedOAuthClientID

func (wl Whitelist) IsAllowedOAuthClientID(email, clientID string) bool

IsAllowedOAuthClientID returns true if the given OAuth2 client ID can be used to authorize access from the given email.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier