all

package
v0.0.0-...-8495beb Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package all contains things that are common amongst all providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Enabled      bool   `default:"false"`
	ClientID     string `required:"true"`
	ClientSecret string `required:"true"`
}

Configuration is the standard config required by all OAuth2 providers.

func LoadProvider

func LoadProvider(name string) Configuration

LoadProvider attempts to load a configuration for an OAuth2 provider from environment variables. The way this works is, if the parse fails then the provider is considered disabled and an empty configuration is returned.

Jump to

Keyboard shortcuts

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