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)
Click to show internal directories.
Click to hide internal directories.