auth

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Argon2id = argon2ID{
	// contains filtered or unexported fields
}

Functions

func AESDecrypt added in v1.9.0

func AESDecrypt(key, ciphertext []byte) ([]byte, error)

func AESEncrypt added in v1.9.0

func AESEncrypt(key, text []byte) ([]byte, error)

func ShouldAllowUnauthenticatedGistAccess

func ShouldAllowUnauthenticatedGistAccess(prov AuthInfoProvider, isSingleGistAccess bool) (bool, error)

Types

type AuthInfoProvider

type AuthInfoProvider interface {
	RequireLogin() (bool, error)
	AllowGistsWithoutLogin() (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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