auth

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(ctx context.Context, authHeader string, opts ...Option) (context.Context, error)

func Email

func Email(ctx context.Context) (string, error)

func SetEmail

func SetEmail(ctx context.Context, email string) context.Context

func SetValidAudience added in v0.0.4

func SetValidAudience(f func(audiences []string) bool)

Types

type Option

type Option = func(*option)

func WithAzureADB2CTenant

func WithAzureADB2CTenant(tenant string) Option

Jump to

Keyboard shortcuts

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