msgraph

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: 13 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var ApiEndpoint = "https://graph.microsoft.com/.default"

Functions

This section is empty.

Types

type MsGraphClient

type MsGraphClient struct {
	Client     *msgraphsdk.GraphServiceClient
	GroupCache kvcachehelper.CacheInterface
	// contains filtered or unexported fields
}

func NewMsGraphClient

func NewMsGraphClient(config MsGraphConfig, cacheHelper kvcachehelper.CacheInterface) (*MsGraphClient, error)

NewMsGraphClient creates a new GraphClient

func (*MsGraphClient) CheckHealth added in v0.1.0

func (g *MsGraphClient) CheckHealth() []newhealth.Check

TODO: Implement

func (*MsGraphClient) GetUser

func (g *MsGraphClient) GetUser(ctx context.Context, userId string) (*identitymodels.User, error)

GetUsersWithGroups gets a user and the name of the groups the user is a member of TODO: Implement isExpired TODO: Implement isDisabled...

type MsGraphConfig

type MsGraphConfig struct {
	Domain       string `json:"domain"`
	TenantID     string `json:"tenantId"`
	ClientID     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
}

Jump to

Keyboard shortcuts

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