Documentation ¶
Overview ¶
Package microsoft provides authentication strategies using Microsoft.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ClientID string `json:"clientID"` ClientSecret string `json:"clientSecret"` RedirectURI string `json:"redirectURI"` Tenant string `json:"tenant"` OnlySecurityGroups bool `json:"onlySecurityGroups"` Groups []string `json:"groups"` GroupNameFormat GroupNameFormat `json:"groupNameFormat"` UseGroupsAsWhitelist bool `json:"useGroupsAsWhitelist"` EmailToLowercase bool `json:"emailToLowercase"` // PromptType is used for the prompt query parameter. // For valid values, see https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow#request-an-authorization-code. PromptType string `json:"promptType"` DomainHint string `json:"domainHint"` Scopes []string `json:"scopes"` // defaults to scopeUser (user.read) }
Config holds configuration options for microsoft logins.
type GroupNameFormat ¶
type GroupNameFormat string
GroupNameFormat represents the format of the group identifier we use type of string instead of int because it's easier to marshall/unmarshall
const ( GroupID GroupNameFormat = "id" GroupName GroupNameFormat = "name" )
Possible values for GroupNameFormat
Click to show internal directories.
Click to hide internal directories.