luci: go.chromium.org/luci/server/auth/authdb/internal/oauthid Index | Files

package oauthid

import "go.chromium.org/luci/server/auth/authdb/internal/oauthid"

Package oauthid implements OAuth client ID whitelist check.

Index

Package Files

oauthid.go

Constants

const GoogleAPIExplorerClientID = "292824132082.apps.googleusercontent.com"

Well-known OAuth client_id of https://apis-explorer.appspot.com/.

type Whitelist Uses

type Whitelist struct {
    stringset.Set
}

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-10-22. Refresh now. Tools for package owners.