auth

package
v0.0.0-...-a78adbb Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	Session        Session
	OAuth2         OAuth2
	LogoutRedirect string
	LogoutCallback string

	// cookies rules
	SessionCookieName string
	Domain            string
	SecureCookie      bool

	AutoSignIn         bool
	Secret             string
	SuccessRedirectURL string

	WebhookSecret string
}

func New

func New(params Params) *Env

type OAuth2

type OAuth2 struct {
	Provider     string
	ClientId     string
	ClientSecret string
	RedirectUrl  string
}

type Params

type Params struct {
	fx.In

	Cfg *config.Config
}

type Session

type Session struct {
	Addr       string
	Password   string
	DB         int
	SessionTTL int
}

Jump to

Keyboard shortcuts

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