security

package
v0.0.0-...-f158767 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthConfiguration

type OAuthConfiguration struct {
	oauth2.Config
	UserEndpoint string
	LogoutPath   string
	HomePath     string
}

type SecurityConfiguration

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

func NewSecurityConfiguration

func NewSecurityConfiguration(r chi.Router, oauthConfig *OAuthConfiguration, sessionStoreKey string) *SecurityConfiguration

func (*SecurityConfiguration) ConfigureRouter

func (sc *SecurityConfiguration) ConfigureRouter(r chi.Router)

type UserInfo

type UserInfo struct {
	Sub        string `json:"sub"`
	Email      string `json:"email"`
	Name       string `json:"name"`
	FirstName  string `json:"given_name"`
	LastName   string `json:"family_name"`
	PictureURL string `json:"picture"`
}

Jump to

Keyboard shortcuts

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