config

package
v0.0.0-...-3a2841b Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Flickr  *Strategy `toml:"flickr"`
	GitHub  *Strategy `toml:"github"`
	Twitter *Strategy `toml:"twitter"`
}

Config has the options required for running relme-auth.

func Read

func Read(path string) (Config, error)

Read a TOML formatted configuration file listing the 3rd party authentication that can be delegated to.

type Strategy

type Strategy struct {
	ID     string `toml:"id"`
	Secret string `toml:"secret"`
}

Strategy has configuration required for an OAuth/OAuth 2.0 service.

Jump to

Keyboard shortcuts

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