directory

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package directory implements the user group directory service.

Index

Constants

This section is empty.

Variables

View Source
var RegisterDirectoryServiceServer = directory.RegisterDirectoryServiceServer

RegisterDirectoryServiceServer registers the directory gRPC service.

Functions

This section is empty.

Types

type Group

type Group = directory.Group

A Group is a directory Group.

type Options added in v0.10.1

type Options = directory.Options

Options are the options specific to the provider.

type Provider

type Provider interface {
	User(ctx context.Context, userID, accessToken string) (*User, error)
	UserGroups(ctx context.Context) ([]*Group, []*User, error)
}

A Provider provides user group directory information.

func GetProvider

func GetProvider(options Options) (provider Provider)

GetProvider gets the provider for the given options.

type User

type User = directory.User

A User is a directory User.

Directories

Path Synopsis
Package auth0 contains the Auth0 directory provider.
Package auth0 contains the Auth0 directory provider.
mock_auth0
Package mock_auth0 is a generated GoMock package.
Package mock_auth0 is a generated GoMock package.
Package azure contains an azure active directory directory provider.
Package azure contains an azure active directory directory provider.
Package github contains a directory provider for github.
Package github contains a directory provider for github.
Package gitlab contains a directory provider for gitlab.
Package gitlab contains a directory provider for gitlab.
Package google contains the Google directory provider.
Package google contains the Google directory provider.
Package okta contains the Okta directory provider.
Package okta contains the Okta directory provider.
Package onelogin contains the onelogin directory provider.
Package onelogin contains the onelogin directory provider.
Package ping implements a directory provider for Ping.
Package ping implements a directory provider for Ping.

Jump to

Keyboard shortcuts

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