auth

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestHandler added in v0.8.0

func RequestHandler(w http.ResponseWriter, r *http.Request)

RequestHandler is the main handler for the /auth endpoint; it returns a userResponse struct indicating whether the request was authenticated via local or in-cluster auth, and relevant user data

Types

type UserResponse added in v0.8.0

type UserResponse struct {
	Group             string `json:"group"`
	PreferredUsername string `json:"preferred-username"`
	Name              string `json:"name"`
	InClusterAuth     bool   `json:"in-cluster-auth"`
}

UserResponse is the response for the /auth endpoint

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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