oidc

package
v1.19.11 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client handles the OIDC setup at startup and provides a middleware to tbe used with the goswagger API

func New

func New(cfg config.Config) (*Client, error)

New OIDC Client: It tries to retrieve the JWKs at startup (or fails), it provides a middleware which can be used at runtime with a go-swagger style API

func (*Client) ValidateAndExtract

func (c *Client) ValidateAndExtract(token string, scopes []string) (*models.Principal, error)

ValidateAndExtract can be used as a middleware for go-swagger

Jump to

Keyboard shortcuts

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