environments

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Global = Environment{
		AzureADEndpoint: AzureADGlobal,
		MsGraphEndpoint: MsGraphGlobal,
	}

	USGovernmentL4 = Environment{
		AzureADEndpoint: AzureADUSGov,
		MsGraphEndpoint: MsGraphUSGovL4,
	}

	USGovernmentL5 = Environment{
		AzureADEndpoint: AzureADUSGov,
		MsGraphEndpoint: MsGraphUSGovL5,
	}

	Germany = Environment{
		AzureADEndpoint: AzureADGermany,
		MsGraphEndpoint: MsGraphGermany,
	}

	China = Environment{
		AzureADEndpoint: AzureADChina,
		MsGraphEndpoint: MsGraphChina,
	}
)

Functions

func AzureAD

func AzureAD(endpoint AzureADEndpoint, tenant string) oauth2.Endpoint

Types

type AzureADEndpoint

type AzureADEndpoint string
const (
	AzureADGlobal  AzureADEndpoint = "https://login.microsoftonline.com"
	AzureADUSGov   AzureADEndpoint = "https://login.microsoftonline.us"
	AzureADGermany AzureADEndpoint = "https://login.microsoftonline.de"
	AzureADChina   AzureADEndpoint = "https://login.chinacloudapi.cn"
)

type Environment

type Environment struct {
	AzureADEndpoint AzureADEndpoint
	MsGraphEndpoint MsGraphEndpoint
}

type MsGraphEndpoint

type MsGraphEndpoint string
const (
	MsGraphGlobal  MsGraphEndpoint = "https://graph.microsoft.com"
	MsGraphUSGovL4 MsGraphEndpoint = "https://graph.microsoft.us"
	MsGraphUSGovL5 MsGraphEndpoint = "https://dod-graph.microsoft.us"
	MsGraphGermany MsGraphEndpoint = "https://graph.microsoft.de"
	MsGraphChina   MsGraphEndpoint = "https://microsoftgraph.chinacloudapi.cn"
)

Jump to

Keyboard shortcuts

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