Help us shape the future of Go! Take the 2026 Go Developer Survey

authtools

package
v1.25.10 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserLookupHistogram       *prometheus.HistogramVec
	ServerConnectionHistogram *prometheus.HistogramVec
	ServerReconnectCounter    *prometheus.CounterVec
)

Functions

func QualifyGroups added in v1.25.6

func QualifyGroups(groups []string, domain string) []string

QualifyGroups returns group names in the "<group>@<domain>" form that ACL grants are matched on. Names that already carry a domain, and all names when no domain is known, are returned unchanged.

func SplitUserId

func SplitUserId(userId string) (string, string, error)

Types

type DirectoryUser added in v1.25.6

type DirectoryUser struct {
	Email  string
	Name   string
	Groups []string
}

DirectoryUser is a user as resolved from a directory service (Active Directory, LDAP or Microsoft Graph). It is the directory layer's own DTO, so resolvers stay independent of the authentication identity model.

Jump to

Keyboard shortcuts

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