luci: Index | Files

package oauthid

import ""

Package oauthid implements OAuth client ID whitelist check.


Package Files



const GoogleAPIExplorerClientID = ""

Well-known OAuth client_id of

type Whitelist Uses

type Whitelist struct {

Whitelist is OAuth client ID whitelist.

func NewWhitelist Uses

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

NewWhitelist creates new populated client ID whitelist.

func (Whitelist) IsAllowedOAuthClientID Uses

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 oauthid imports 2 packages (graph) and is imported by 2 packages. Updated 2019-12-14. Refresh now. Tools for package owners.