Documentation
¶
Overview ¶
Package microsoft implements theauth.Provider against the Microsoft identity platform v2.0 (Azure AD / Entra ID). Import this package only when you want Microsoft sign-in; the root theauth package has no hard dependency on it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
ClientID string
ClientSecret string
Scopes []string
// Tenant selects which AAD authority to use. Valid values: "common"
// (default, any work / school / personal Microsoft account),
// "organizations" (work / school only), "consumers" (personal only),
// or a tenant GUID / verified domain for single tenant apps.
Tenant string
// Endpoint overrides for tests. AuthorizeURL and TokenURL, if set,
// bypass the Tenant substitution entirely (used verbatim).
AuthorizeURL string
TokenURL string
UserInfoURL string
HTTPClient *http.Client
}
Config is the provider's wiring. ClientID + ClientSecret are required. Tenant selects which AAD authority to use (default "common").