oauth

package
v0.0.0-...-ee09c68 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hostname

func Hostname() string

Hostname reads HOSTNAME env var or os.Hostname used for your app

func RegisterAPI

func RegisterAPI(r Router, config *auth.Config)

RegisterAPI registers OAuth HTTP handlers

func WithProviders

func WithProviders(config *auth.Config, providers ...interface{})

WithProviders registers OAuth providers Example: import "github.com/markbates/goth/providers/vk" oauth.WithProviders("vk", vk.New)

Types

type Router

type Router interface {
	Get(pattern string, h http.HandlerFunc)
}

Router interface to allow use of any router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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