Documentation
¶
Overview ¶
Package resolver provides the GroupResolver interface and implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleResolver ¶
type GoogleResolver struct {
// contains filtered or unexported fields
}
GoogleResolver implements GroupResolver using the Google Admin SDK Directory API. It uses domain-wide delegation with a service account impersonating an admin user.
func NewGoogleResolver ¶
func NewGoogleResolver(logger *slog.Logger, saKeyJSON []byte, adminEmail string) *GoogleResolver
NewGoogleResolver creates a new GoogleResolver. saKeyJSON is the service account key file content. adminEmail is the admin user to impersonate for domain-wide delegation.
func (*GoogleResolver) ResolveGroups ¶
ResolveGroups lists all groups the user belongs to using the Google Admin SDK.
Click to show internal directories.
Click to hide internal directories.