ctxvalues

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ContextAccessToken = "accesstoken"
View Source
const ContextApiToken = "apitoken"
View Source
const ContextAuthorizedAs = "authorizedas"
View Source
const ContextEmail = "email"
View Source
const ContextEmailVerified = "emailverified"
View Source
const ContextIdToken = "idtoken"
View Source
const ContextMap = "map"
View Source
const ContextName = "name"
View Source
const ContextRequestId = "requestid"
View Source
const ContextSubject = "subject"

Variables

This section is empty.

Functions

func AccessToken

func AccessToken(ctx context.Context) string

func ClearAuthorizedGroups

func ClearAuthorizedGroups(ctx context.Context)

func CreateContextWithValueMap

func CreateContextWithValueMap(ctx context.Context) context.Context

func Email

func Email(ctx context.Context) string

func EmailVerified

func EmailVerified(ctx context.Context) bool

func HasApiToken

func HasApiToken(ctx context.Context) bool

func IdToken

func IdToken(ctx context.Context) string

func IsAuthorizedAsGroup

func IsAuthorizedAsGroup(ctx context.Context, group string) bool

func Name

func Name(ctx context.Context) string

func RequestId

func RequestId(ctx context.Context) string

func SetAccessToken

func SetAccessToken(ctx context.Context, token string)

func SetApiToken

func SetApiToken(ctx context.Context, apiToken string)

func SetAuthorizedAsGroup

func SetAuthorizedAsGroup(ctx context.Context, group string)

func SetEmail

func SetEmail(ctx context.Context, email string)

func SetEmailVerified

func SetEmailVerified(ctx context.Context, verified bool)

func SetIdToken

func SetIdToken(ctx context.Context, token string)

func SetName

func SetName(ctx context.Context, Name string)

func SetRequestId

func SetRequestId(ctx context.Context, requestId string)

func SetSubject

func SetSubject(ctx context.Context, Subject string)

func Subject

func Subject(ctx context.Context) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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