Documentation
¶
Index ¶
- func NewProviderClient(client *http.Client) appoauth.ProviderClient
- func NewUpstreamRegistrar(clients appoauth.ClientStore, client *http.Client) appoauth.UpstreamRegistrar
- type ConnectStore
- func (s *ConnectStore) GetClient(ctx context.Context, key string) (*appoauth.RegisteredClient, error)
- func (s *ConnectStore) GetTicket(ctx context.Context, id string) (*appoauth.ConnectTicket, error)
- func (s *ConnectStore) SaveClient(ctx context.Context, key string, c appoauth.RegisteredClient) error
- func (s *ConnectStore) SaveConnect(ctx context.Context, state string, c appoauth.ConnectState) error
- func (s *ConnectStore) SaveTicket(ctx context.Context, id string, t appoauth.ConnectTicket) error
- func (s *ConnectStore) TakeConnect(ctx context.Context, state string) (*appoauth.ConnectState, error)
- type Store
- func (s *Store) GetGatewayClient(ctx context.Context, clientID string) (*appoauth.RegisteredGatewayClient, error)
- func (s *Store) SaveCode(ctx context.Context, code string, g appoauth.CodeGrant) error
- func (s *Store) SaveGatewayClient(ctx context.Context, c appoauth.RegisteredGatewayClient) error
- func (s *Store) SavePending(ctx context.Context, state string, p appoauth.PendingAuthorization) error
- func (s *Store) TakeCode(ctx context.Context, code string) (*appoauth.CodeGrant, error)
- func (s *Store) TakePending(ctx context.Context, state string) (*appoauth.PendingAuthorization, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProviderClient ¶
func NewProviderClient(client *http.Client) appoauth.ProviderClient
func NewUpstreamRegistrar ¶
func NewUpstreamRegistrar(clients appoauth.ClientStore, client *http.Client) appoauth.UpstreamRegistrar
Types ¶
type ConnectStore ¶
type ConnectStore struct {
// contains filtered or unexported fields
}
func NewConnectStore ¶
func NewConnectStore(rdb *redis.Client) *ConnectStore
func (*ConnectStore) GetClient ¶
func (s *ConnectStore) GetClient(ctx context.Context, key string) (*appoauth.RegisteredClient, error)
func (*ConnectStore) GetTicket ¶
func (s *ConnectStore) GetTicket(ctx context.Context, id string) (*appoauth.ConnectTicket, error)
func (*ConnectStore) SaveClient ¶
func (s *ConnectStore) SaveClient(ctx context.Context, key string, c appoauth.RegisteredClient) error
func (*ConnectStore) SaveConnect ¶
func (s *ConnectStore) SaveConnect(ctx context.Context, state string, c appoauth.ConnectState) error
func (*ConnectStore) SaveTicket ¶
func (s *ConnectStore) SaveTicket(ctx context.Context, id string, t appoauth.ConnectTicket) error
func (*ConnectStore) TakeConnect ¶
func (s *ConnectStore) TakeConnect(ctx context.Context, state string) (*appoauth.ConnectState, error)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) GetGatewayClient ¶
func (*Store) SaveGatewayClient ¶
func (*Store) SavePending ¶
func (*Store) TakePending ¶
Click to show internal directories.
Click to hide internal directories.