authentication

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAuthentication

func WithAuthentication(handler http.Handler, opts *Options) (http.Handler, error)

WithAuthentication creates an http handler that tries to authenticate the given chartmuseum request as a user, and then stores any such user found onto the provided context for the request.

Types

type Options

type Options struct {
	SecurityConfig  *registryconfig.Security
	ExternalScheme  string
	OIDCIssuerURL   string
	OIDCCAFile      string
	TokenReviewPath string
}

Jump to

Keyboard shortcuts

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