authentication

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(url string, params UserParams) func(http.Handler) http.Handler

Compare JWT token payload with expected user ID, Groups and Roles if no expected -> just validate the JWT token on the auth authService

Types

type UserParams added in v0.0.4

type UserParams struct {
	ID     string   `json:"id,omitempty"`
	Groups []string `json:"groups,omitempty"`
	Roles  []string `json:"roles,omitempty"`
}

Jump to

Keyboard shortcuts

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