IdTokenBlackLister

package
v0.0.0-...-a8b8e24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdTokenBlackLister

type IdTokenBlackLister interface {
	// InsertToBlackListedStore inserts the token as blacklisted
	// Being in blacklisted makes sure that the token cannot be used further
	InsertToBlackListedStore(string) error

	// IsIdTokenBlacklisted looks up to the blacklisted store
	// to check if the token exists.
	IsIdTokenBlacklisted(string) (bool, error)
}

IdTokenBlackLister interface exposes functions to be used to blacklist and validate idtokens

type InMemoryBlackLister

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

func NewInMemoryBlackLister

func NewInMemoryBlackLister() InMemoryBlackLister

func (InMemoryBlackLister) InsertToBlackListedStore

func (a InMemoryBlackLister) InsertToBlackListedStore(idToken string) error

func (InMemoryBlackLister) IsIdTokenBlacklisted

func (a InMemoryBlackLister) IsIdTokenBlacklisted(idToken string) (bool, error)

type PgBlackLister

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

func NewPgBlackLister

func NewPgBlackLister(pgConn *sql.DB) PgBlackLister

func (PgBlackLister) InsertToBlackListedStore

func (a PgBlackLister) InsertToBlackListedStore(idToken string) error

func (PgBlackLister) IsIdTokenBlacklisted

func (a PgBlackLister) IsIdTokenBlacklisted(idToken string) (bool, error)

Jump to

Keyboard shortcuts

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