scope

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package scope is the single source of truth for ESP User's OAuth/OIDC scope values and space-delimited membership tests (RFC 6749 §3.3).

Index

Constants

View Source
const (
	OpenID  = "openid"
	Email   = "email"
	Profile = "profile"
	Phone   = "phone"
)

openid triggers id-token issuance; email/profile and phone gate which contact claims userinfo returns.

Variables

This section is empty.

Functions

func Has

func Has(scope string, want ...string) bool

Has reports whether any of want is present in the space-delimited scope string.

func HasOpenID

func HasOpenID(scope string) bool

HasOpenID reports whether the openid scope is present (⇒ mint an id token).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL