Documentation ¶
Index ¶
- func DownloadAccessToken(url string, auth *osin.BasicAuth, output map[string]interface{}) error
- func HandleLoginPage(ar *osin.AuthorizeRequest, w http.ResponseWriter, r *http.Request) bool
- type TestStorage
- func (s *TestStorage) Clone() osin.Storage
- func (s *TestStorage) Close()
- func (s *TestStorage) GetClient(id string) (osin.Client, error)
- func (s *TestStorage) GetPrivateKey(clientID string) (crypto.Signer, error)
- func (s *TestStorage) LoadAccess(code string) (*osin.AccessData, error)
- func (s *TestStorage) LoadAuthorize(code string) (*osin.AuthorizeData, error)
- func (s *TestStorage) LoadRefresh(code string) (*osin.AccessData, error)
- func (s *TestStorage) RemoveAccess(code string) error
- func (s *TestStorage) RemoveAuthorize(code string) error
- func (s *TestStorage) RemoveRefresh(code string) error
- func (s *TestStorage) SaveAccess(data *osin.AccessData) error
- func (s *TestStorage) SaveAuthorize(data *osin.AuthorizeData) error
- func (s *TestStorage) SetClient(id string, client osin.Client) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadAccessToken ¶
DownloadAccessToken access token
func HandleLoginPage ¶
func HandleLoginPage(ar *osin.AuthorizeRequest, w http.ResponseWriter, r *http.Request) bool
HandleLoginPage login page
Types ¶
type TestStorage ¶
type TestStorage struct {
// contains filtered or unexported fields
}
TestStorage for test
func (*TestStorage) GetClient ¶
func (s *TestStorage) GetClient(id string) (osin.Client, error)
GetClient get client
func (*TestStorage) GetPrivateKey ¶ added in v1.1.3
func (s *TestStorage) GetPrivateKey(clientID string) (crypto.Signer, error)
GetPrivateKey private key
func (*TestStorage) LoadAccess ¶
func (s *TestStorage) LoadAccess(code string) (*osin.AccessData, error)
LoadAccess load access
func (*TestStorage) LoadAuthorize ¶
func (s *TestStorage) LoadAuthorize(code string) (*osin.AuthorizeData, error)
LoadAuthorize load authorize
func (*TestStorage) LoadRefresh ¶
func (s *TestStorage) LoadRefresh(code string) (*osin.AccessData, error)
LoadRefresh load refresh
func (*TestStorage) RemoveAccess ¶
func (s *TestStorage) RemoveAccess(code string) error
RemoveAccess remove access
func (*TestStorage) RemoveAuthorize ¶
func (s *TestStorage) RemoveAuthorize(code string) error
RemoveAuthorize remove authorize
func (*TestStorage) RemoveRefresh ¶
func (s *TestStorage) RemoveRefresh(code string) error
RemoveRefresh remove refresh
func (*TestStorage) SaveAccess ¶
func (s *TestStorage) SaveAccess(data *osin.AccessData) error
SaveAccess save access
func (*TestStorage) SaveAuthorize ¶
func (s *TestStorage) SaveAuthorize(data *osin.AuthorizeData) error
SaveAuthorize save authorize
Directories ¶
Path | Synopsis |
---|---|
An example of adding OpenID Connect support to osin.
|
An example of adding OpenID Connect support to osin. |
Click to show internal directories.
Click to hide internal directories.