auth

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 0 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 {
	OAuth2 struct {
		Provider     string `required:"true"`
		ClientID     string `required:"true"`
		ClientSecret string `required:"true"`
		RedirectUrl  string `required:"true"`
	}
	LogoutRedirect string // optional if provider doesn't support it in openid-configuration
	LogoutCallback string

	// cookies rules
	SessionCookieName string `default:"ssid"`
	StateCookieName   string `default:"state"`
	Domain            string
	SecureCookie      bool

	AutoSignIn         bool
	Secret             string
	SuccessRedirectURL string
}

Jump to

Keyboard shortcuts

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