apikeys

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareArgon2Hash

func CompareArgon2Hash(key string, encodedHash string) (bool, error)

func DecodeArgon2Hash

func DecodeArgon2Hash(key string) (uint32, uint32, uint8, []byte, []byte, error)

Types

type Generator

type Generator struct {
	Memory      uint32
	Time        uint32
	Parallelism uint8
}

func NewGenerator

func NewGenerator(app *application.App) Generator

func (*Generator) Generate

func (g *Generator) Generate() (string, string, error)

type Verifier

type Verifier struct {
	App *application.App
}

func NewVerifier

func NewVerifier(app *application.App) Verifier

func (*Verifier) VerifyScim

func (v *Verifier) VerifyScim(ctx context.Context, authorizationHeader string) (bool, error)

Jump to

Keyboard shortcuts

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