msgraph

package
v0.0.0-...-e98bb8d Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate() (*msgraphsdk.GraphServiceClient, error)

func ListTenants

func ListTenants(graph *msgraphsdk.GraphServiceClient) ([]models.Tenant, error)

func NewGraphServiceClientWithRefreshToken

func NewGraphServiceClientWithRefreshToken(token TokenResponse) (*msgraphsdk.GraphServiceClient, error)

Types

type CustomTokenCredential

type CustomTokenCredential struct {
	Token     string
	ExpiresOn time.Time
}

func (*CustomTokenCredential) GetToken

type TokenResponse

type TokenResponse struct {
	TokenType    string `json:"token_type"`
	Scope        string `json:"scope"`
	ExpiresIn    int    `json:"expires_in"`
	ExtExpiresIn int    `json:"ext_expires_in"`
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	IDToken      string `json:"id_token"`
}

Jump to

Keyboard shortcuts

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