oidc

package
v0.0.0-...-f28b7b0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

func NewParser(ctx context.Context, issuers ...string) (api.TokenParser, error)

NewParser returns an appropriate parser

func NewTracedTokenParser

func NewTracedTokenParser(tp trace.TracerProvider, parser api.TokenParser) api.TokenParser

Types

type MultiIssuerParser

type MultiIssuerParser struct {
	// contains filtered or unexported fields
}

MultiIssuerParser supports multiple issuers

func NewMultiIssuerParser

func NewMultiIssuerParser(ctx context.Context, issuers ...string) (*MultiIssuerParser, error)

func (*MultiIssuerParser) Parse

func (p *MultiIssuerParser) Parse(ctx context.Context, tok string) (api.Claims, error)

type TokenParser

type TokenParser struct {
	// contains filtered or unexported fields
}

TokenParser parses tokens from a known issuer

func NewTokenParser

func NewTokenParser(ctx context.Context, issuer string, opts ...TokenParserOpt) (*TokenParser, error)

func (*TokenParser) Parse

func (p *TokenParser) Parse(ctx context.Context, tok string) (api.Claims, error)

type TokenParserOpt

type TokenParserOpt func(*oidc.Config)

type TracedTokenParser

type TracedTokenParser struct {
	// contains filtered or unexported fields
}

func (TracedTokenParser) Parse

func (p TracedTokenParser) Parse(ctx context.Context, tok string) (api.Claims, error)

Jump to

Keyboard shortcuts

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