auth

package
v0.0.0-...-5f7400d Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitHub

func GitHub(authCallback AuthCallback, clientID, clientSecret, organisation string) (login, callback http.HandlerFunc)

func Office365

func Office365(authCallback AuthCallback, clientID, clientSecret, domain string) (login, callback http.HandlerFunc)

func Test

func Test(authCallback AuthCallback) (login, callback http.HandlerFunc)

Types

type AuthCallback

type AuthCallback func(w http.ResponseWriter, r *http.Request, allowed bool, user string)

Jump to

Keyboard shortcuts

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