auth

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CookieTokenName = "token"
)

Variables

This section is empty.

Functions

func RegisterAuthEndpoint

func RegisterAuthEndpoint(e *echo.Echo, hashKey, blockKey []byte, providers map[string]*oauth2.Config, origins []string) echo.MiddlewareFunc

Types

type AuthResource

type AuthResource struct {
	ID               string `json:"id,omitempty"`
	Idp              string `json:"idp"`
	Path             string `json:"path,omitempty"`
	AuthorizationURL string `json:"authorizationUrl,omitempty"`
	Code             string `json:"code,omitempty"`
}

Jump to

Keyboard shortcuts

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