Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticate ¶
type Authenticate interface { CheckAuth(token string) (bool, error) SetAuth(sm *scs.SessionManager, w http.ResponseWriter, r *http.Request) (http.ResponseWriter, error) RetrieveToken(r *http.Request) (string, error) }
func NewHydraAuthenticate ¶
func NewHydraAuthenticate() (Authenticate, error)
func NewKeystoneAuthenticate ¶
func NewKeystoneAuthenticate() (Authenticate, error)
func NewNoneAuthenticate ¶
func NewNoneAuthenticate() (Authenticate, error)
type HydraAuthenticate ¶
type HydraAuthenticate struct {
// contains filtered or unexported fields
}
func (HydraAuthenticate) CheckAuth ¶
func (hydra HydraAuthenticate) CheckAuth(token string) (bool, error)
func (HydraAuthenticate) RetrieveToken ¶
func (hydra HydraAuthenticate) RetrieveToken(r *http.Request) (string, error)
func (HydraAuthenticate) SetAuth ¶
func (hydra HydraAuthenticate) SetAuth(sm *scs.SessionManager, w http.ResponseWriter, r *http.Request) (http.ResponseWriter, error)
type KeystoneAuthenticate ¶
type KeystoneAuthenticate struct {
// contains filtered or unexported fields
}
func (KeystoneAuthenticate) CheckAuth ¶
func (keystone KeystoneAuthenticate) CheckAuth(token string) (bool, error)
func (KeystoneAuthenticate) RetrieveToken ¶
func (keystone KeystoneAuthenticate) RetrieveToken(r *http.Request) (string, error)
func (KeystoneAuthenticate) SetAuth ¶
func (keystone KeystoneAuthenticate) SetAuth(sm *scs.SessionManager, w http.ResponseWriter, r *http.Request) (http.ResponseWriter, error)
type NoneAuthenticate ¶
type NoneAuthenticate struct {
// contains filtered or unexported fields
}
func (NoneAuthenticate) RetrieveToken ¶
func (n NoneAuthenticate) RetrieveToken(r *http.Request) (string, error)
func (NoneAuthenticate) SetAuth ¶
func (n NoneAuthenticate) SetAuth(sm *scs.SessionManager, w http.ResponseWriter, r *http.Request) (http.ResponseWriter, error)
Click to show internal directories.
Click to hide internal directories.