Documentation ¶
Index ¶
- func CallbackHandler(c oauth2.Config) func(rw http.ResponseWriter, req *http.Request)
- func ClientEndpoint(c clientcredentials.Config) func(rw http.ResponseWriter, req *http.Request)
- func HomeHandler(c oauth2.Config) func(rw http.ResponseWriter, req *http.Request)
- func OwnerHandler(c oauth2.Config) func(rw http.ResponseWriter, req *http.Request)
- type Store
- func (s *Store) Authenticate(_ context.Context, name string, secret string) error
- func (s *Store) CreateAccessTokenSession(_ context.Context, signature string, req fosite.Requester) error
- func (s *Store) CreateAuthorizeCodeSession(_ context.Context, code string, req fosite.Requester) error
- func (s *Store) CreateImplicitAccessTokenSession(_ context.Context, code string, req fosite.Requester) error
- func (s *Store) CreateOpenIDConnectSession(_ context.Context, authorizeCode string, requester fosite.Requester) error
- func (s *Store) CreateRefreshTokenSession(_ context.Context, signature string, req fosite.Requester) error
- func (s *Store) DeleteAccessTokenSession(_ context.Context, signature string) error
- func (s *Store) DeleteAuthorizeCodeSession(_ context.Context, code string) error
- func (s *Store) DeleteOpenIDConnectSession(_ context.Context, authorizeCode string) error
- func (s *Store) DeleteRefreshTokenSession(_ context.Context, signature string) error
- func (s *Store) GetAccessTokenSession(_ context.Context, signature string, _ interface{}) (fosite.Requester, error)
- func (s *Store) GetAuthorizeCodeSession(_ context.Context, code string, _ interface{}) (fosite.Requester, error)
- func (s *Store) GetClient(id string) (fosite.Client, error)
- func (s *Store) GetOpenIDConnectSession(_ context.Context, authorizeCode string, requester fosite.Requester) (fosite.Requester, error)
- func (s *Store) GetRefreshTokenSession(_ context.Context, signature string, _ interface{}) (fosite.Requester, error)
- func (s *Store) PersistAuthorizeCodeGrantSession(ctx context.Context, authorizeCode, accessSignature, refreshSignature string, ...) error
- func (s *Store) PersistRefreshTokenGrantSession(ctx context.Context, ...) error
- type UserRelation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallbackHandler ¶
func ClientEndpoint ¶
func ClientEndpoint(c clientcredentials.Config) func(rw http.ResponseWriter, req *http.Request)
func HomeHandler ¶
func OwnerHandler ¶
Types ¶
type Store ¶
type Store struct { Clients map[string]*fosite.DefaultClient AuthorizeCodes map[string]fosite.Requester IDSessions map[string]fosite.Requester AccessTokens map[string]fosite.Requester Implicit map[string]fosite.Requester RefreshTokens map[string]fosite.Requester Users map[string]UserRelation }
func NewExampleStore ¶
func NewExampleStore() *Store
func (*Store) Authenticate ¶
func (*Store) CreateAccessTokenSession ¶
func (*Store) CreateAuthorizeCodeSession ¶
func (*Store) CreateImplicitAccessTokenSession ¶
func (*Store) CreateOpenIDConnectSession ¶
func (*Store) CreateRefreshTokenSession ¶
func (*Store) DeleteAccessTokenSession ¶
func (*Store) DeleteAuthorizeCodeSession ¶
func (*Store) DeleteOpenIDConnectSession ¶
func (*Store) DeleteRefreshTokenSession ¶
func (*Store) GetAccessTokenSession ¶
func (*Store) GetAuthorizeCodeSession ¶
func (*Store) GetOpenIDConnectSession ¶
func (*Store) GetRefreshTokenSession ¶
func (*Store) PersistAuthorizeCodeGrantSession ¶
type UserRelation ¶
Click to show internal directories.
Click to hide internal directories.