auth

package module
v0.2.92 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

README

Auth

Discord

A helper Authentication library designed for use within Loophole Labs projects

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/loopholelabs/auth. For more contribution information check out the contribution guide.

License

The ACME project is available as open source under the terms of the Apache License, Version 2.0.

Code of Conduct

Everyone interacting in the Auth project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the CNCF Code of Conduct.

Project Managed By:

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDisabled = errors.New("auth is disabled")
)

Functions

This section is empty.

Types

type Auth

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

func New

func New(options *Options, storage storage.Storage, logger *zerolog.Logger) (*Auth, error)

func (*Auth) ManualValidate

func (m *Auth) ManualValidate(ctx *fiber.Ctx) (bool, error)

func (*Auth) Start

func (m *Auth) Start() error

func (*Auth) Stop

func (m *Auth) Stop() error

func (*Auth) Validate

func (m *Auth) Validate(ctx *fiber.Ctx) error

type Options

type Options struct {
	LogName       string
	Disabled      bool
	SessionDomain string
	TLS           bool
	API           *api.Options
}

Jump to

Keyboard shortcuts

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