microsoft

package
v2.23.1-0...-dd72bcc Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

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"`
}

Config holds configuration options for microsoft logins.

func (*Config) Open

func (c *Config) Open(id string, logger log.Logger) (connector.Connector, error)

Open returns a strategy for logging in through Microsoft.

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

Jump to

Keyboard shortcuts

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