userauth

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 8 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"`
}

type DomainResolverConfigs

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

type DomainResolverInterface

type DomainResolverInterface interface {
	GetUser(userId string) (*identitymodels.User, error)
}

type DomainResolvers

type DomainResolvers map[string]DomainResolverInterface

func NewDomainResolversFromJson

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

func (DomainResolvers) GetUser

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

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