azure

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Overview

Package azure implements OpenID Connect for Microsoft Azure

https://www.pomerium.io/docs/identity-providers/azure.html

Index

Constants

View Source
const Name = "azure"

Name identifies the Azure identity provider

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	*pom_oidc.Provider
}

Provider is an Azure implementation of the Authenticator interface.

func New

func New(ctx context.Context, o *oauth.Options) (*Provider, error)

New instantiates an OpenID Connect (OIDC) provider for Azure.

func (*Provider) GetSignInURL

func (p *Provider) GetSignInURL(state string) string

GetSignInURL returns the sign in url with typical oauth parameters https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-implicit-grant-flow

func (*Provider) UserGroups

func (p *Provider) UserGroups(ctx context.Context, s *sessions.State) ([]string, error)

UserGroups returns a slice of group names a given user is in. `Directory.Read.All` is required. https://docs.microsoft.com/en-us/graph/api/resources/directoryobject?view=graph-rest-1.0 https://docs.microsoft.com/en-us/graph/api/user-list-memberof?view=graph-rest-1.0

Jump to

Keyboard shortcuts

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