userauth

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainResolverConfig

type DomainResolverConfig struct {
	ResolverType  string                    `json:"resolverType"`
	AdConfig      *activedirectory.AdConfig `json:"adConfig,omitempty"`
	LdapConfig    *ldaps.LdapConfig         `json:"ldapConfig,omitempty"`
	MsGraphConfig *msgraph.MsGraphConfig    `json:"msGraphConfig,omitempty"`
}

TODO: add enum for resolverType

type DomainResolverConfigs

type DomainResolverConfigs struct {
	DomainResolvers []DomainResolverConfig `json:"domainResolvers"`
}

type DomainResolverInterface

type DomainResolverInterface interface {
	GetUser(ctx context.Context, userId string) (*identitymodels.User, error)
	CheckHealth() []newhealth.Check
}

type DomainResolvers

type DomainResolvers struct {
	// contains filtered or unexported fields
}

func NewDomainResolversFromJson

func NewDomainResolversFromJson(jsonBytes []byte) (*DomainResolvers, error)

func (DomainResolvers) GetUser

func (d DomainResolvers) GetUser(ctx context.Context, userId string) (*identitymodels.User, error)

func (DomainResolvers) RegisterHealthChecks added in v0.1.0

func (d DomainResolvers) RegisterHealthChecks()

func (*DomainResolvers) RemoveDomain

func (d *DomainResolvers) RemoveDomain(domain string)

func (*DomainResolvers) SetDomain

func (d *DomainResolvers) SetDomain(domain string, resolver DomainResolverInterface)

Directories

Path Synopsis
This package contains the msgraph package which is used to interact with the Microsoft Graph API it implements the UserWithGroup struct and the GraphClient struct
This package contains the msgraph package which is used to interact with the Microsoft Graph API it implements the UserWithGroup struct and the GraphClient struct

Jump to

Keyboard shortcuts

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