helpers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOGIN_COOKIE_SUFFIX       = "auth_state"
	DEFAULT_COOKIE_EXPIRATION = 365 * 24 * time.Hour
)

Variables

This section is empty.

Functions

func GenerateStateOauthCookie

func GenerateStateOauthCookie(client adapters.OAuth2Provider, cookieExpiration time.Duration, w http.ResponseWriter) string

func GetCookieName

func GetCookieName(client adapters.OAuth2Provider) string

Types

type OAuth2Url

type OAuth2Url struct {
	// contains filtered or unexported fields
}

func NewOAuth2Url

func NewOAuth2Url(host, client, endpoint string) *OAuth2Url

func (*OAuth2Url) Get

func (r *OAuth2Url) Get() string

func (*OAuth2Url) GetTls

func (r *OAuth2Url) GetTls() string

func (*OAuth2Url) SetTls

func (r *OAuth2Url) SetTls()

func (*OAuth2Url) String

func (r *OAuth2Url) String() string

Jump to

Keyboard shortcuts

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