provider

package
v0.0.0-...-09e72e1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderNameInitializationMap = make(map[string]func(key, secret, cbUrl string, scopes ...string) goth.Provider)

ProviderNameInitializationMap is a map of initialization functions for supported OAUTH providers

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Name string

	AdminUserIds   []string
	Implementation *goth.Provider
	// contains filtered or unexported fields
}

Provider represents an OAUTH provider for mouthful

func New

func New(name string, secret, key *string, adminUserIds []string, uri string) (*Provider, error)

New returns a new provider with the given parameters. It checks if the provider is supported or not and if all the requierements are met.

Jump to

Keyboard shortcuts

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