Versions in this module Expand all Collapse all v0 v0.0.1 Feb 13, 2023 Changes in this version + var Signer crypto.Signer + type TestClient struct + ID string + Redirect string + Secret string + Type protocol.ClientType + func (c *TestClient) ClientID() string + func (c *TestClient) ClientSecret() string + func (c *TestClient) ClientType() protocol.ClientType + func (c *TestClient) DeviceAuthPath() string + func (c *TestClient) ExpirationOptions() protocol.Expirations + func (c *TestClient) GrantTypes() []protocol.GrantType + func (c *TestClient) IsScopeAllowed(scope string) bool + func (c *TestClient) JWTSigningMethod() jwt.SigningMethod + func (c *TestClient) PrivateKey() (crypto.Signer, error) + func (c *TestClient) RedirectURI() string + func (c *TestClient) ResponseTypes() []protocol.ResponseType + type TestSession struct + func (s *TestSession) AllowedOrigin() string + func (s *TestSession) SessionExpiresIn(cookie string) int + type TestStorage struct + func NewTestStorage() *TestStorage + func (s *TestStorage) Client(clientID string) (protocol.Client, error) + func (s *TestStorage) LoadAccess(token string) (data *protocol.AccessData, err error) + func (s *TestStorage) LoadAuthorize(code string) (data *protocol.AuthorizeData, err error) + func (s *TestStorage) LoadRefresh(refresh string) (data *protocol.AccessData, err error) + func (s *TestStorage) RemoveAccess(token string) error + func (s *TestStorage) RemoveAuthorize(code string) error + func (s *TestStorage) RemoveRefresh(refresh string) error + func (s *TestStorage) SaveAccess(token string, data *protocol.AccessData, exp int) error + func (s *TestStorage) SaveAuthorize(code string, data *protocol.AuthorizeData, exp int) error + func (s *TestStorage) SaveRefresh(refresh, token string, exp int) (err error) + func (s *TestStorage) UserDataScopes(uid string, scopes []protocol.Scope) (*protocol.UserInfo, error)