auth

package
v0.10.0-preview2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	EnabledProviders []string `json:"enabled_providers"`
}

type Handler

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

func NewHandler

func NewHandler(authService auth.Service, oauthManager *auth.OAuthManager, userService user.Service, config *config.Config, oauthProvider *marmotOAuth2.Provider, authorizeSessionStore *marmotOAuth2.AuthorizeSessionStore) *Handler

func (*Handler) CompleteAuthorize

func (h *Handler) CompleteAuthorize(w http.ResponseWriter, r *http.Request, userID, username string) (string, error)

func (*Handler) HasPendingAuthorize

func (h *Handler) HasPendingAuthorize(r *http.Request) bool

func (*Handler) Routes

func (h *Handler) Routes() []common.Route

type LoginHandoffStore

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

func NewLoginHandoffStore

func NewLoginHandoffStore() *LoginHandoffStore

func (*LoginHandoffStore) Put

func (s *LoginHandoffStore) Put(ticket, token string)

func (*LoginHandoffStore) StartCleanup

func (s *LoginHandoffStore) StartCleanup(ctx context.Context, interval time.Duration)

func (*LoginHandoffStore) Take

func (s *LoginHandoffStore) Take(ticket string) string

Jump to

Keyboard shortcuts

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