Documentation ¶
Index ¶
- Constants
- Variables
- type Store
- func (s *Store) ClientAssertionJWTValid(ctx context.Context, jti string) error
- func (s *Store) GetClient(ctx context.Context, id string) (fosite.Client, error)
- func (s *Store) InsertClient(ctx context.Context, client *oauth2client.Client) (string, error)
- func (s *Store) SetClientAssertionJWT(ctx context.Context, jti string, exp time.Time) error
Constants ¶
View Source
const ( ClientsSegment = "fosite_clients" BlacklistedJTIsSegment = "fosite_blacklisted_jtis" )
Variables ¶
View Source
var ErrDataNotFound = errors.New("data not found")
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ClientAssertionJWTValid ¶
ClientAssertionJWTValid returns an error if the JTI is known or the DB check failed and nil if the JTI is not known.
func (*Store) GetClient ¶
GetClient loads the client by its ID or returns an error if the client does not exist or another error occurred.
func (*Store) InsertClient ¶
func (*Store) SetClientAssertionJWT ¶
SetClientAssertionJWT marks a JTI as known for the given expiry time. Before inserting the new JTI, it will clean up any existing JTIs that have expired as those tokens can not be replayed due to the expiry.
Click to show internal directories.
Click to hide internal directories.