mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-02 19:04:14 +02:00
authenticate: save oauth2 tokens to cache (#698)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
parent
ef399380b7
commit
666fd6aa35
31 changed files with 1127 additions and 1061 deletions
14
internal/grpc/cache/cache.go
vendored
Normal file
14
internal/grpc/cache/cache.go
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
// Package cache defines a Cacher interfaces that can be implemented by any
|
||||
// key value store system.
|
||||
package cache
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
// Cacher specifies an interface for remote clients connecting to the cache service.
|
||||
type Cacher interface {
|
||||
Get(ctx context.Context, key string) (value []byte, err error)
|
||||
Set(ctx context.Context, key string, value []byte) error
|
||||
Close() error
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue