Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access interface {
Access(req *request.AccessRequest) (*response.AccessResponse, error)
}
func NewAccess ¶
func NewAccess(s *SimpleServer) Access
type Authorize ¶
type Authorize interface { Login(req *request.AuthorizeRequest) (*response.AuthorizeResponse, error) Register(req *request.AuthorizeRequest) (res *response.AuthorizeResponse, err error) Authorization(req *request.AuthorizeRequest) (*response.AuthorizeResponse, error) }
func NewAuthorize ¶
func NewAuthorize(s *SimpleServer) Authorize
type Info ¶
type Info interface {
Info(req *request.InfoRequest) (*response.AccessResponse, error)
}
func NewInfo ¶
func NewInfo(s *SimpleServer) Info
type SimpleServer ¶
type SimpleServer struct { Config *config.SimpleConfig AuthorizeCode face.AuthorizeCode AccessToken face.AccessToken Now func() time.Time Logger log.Logger }
Server is an OAuth2 implementation
func NewSimpleServer ¶
func NewSimpleServer(config *config.SimpleConfig) *SimpleServer
NewServer creates a new server instance
Click to show internal directories.
Click to hide internal directories.