Documentation
¶
Index ¶
- type Server
- func (s *Server) CheckGrantType(gt oauth2.GrantType) bool
- func (s *Server) CheckResponseType(rt oauth2.ResponseType) bool
- func (s *Server) GetAccessToken(ctx context.Context, gt oauth2.GrantType, tgr *oauth2.TokenGenerateRequest) (oauth2.TokenInfo, error)
- func (s *Server) GetAuthorizeData(rt oauth2.ResponseType, ti oauth2.TokenInfo) map[string]interface{}
- func (s *Server) GetAuthorizeToken(ctx context.Context, req *oauth.OauthReq) (ti oauth2.TokenInfo, err error)
- func (s *Server) GetErrorData(err error) (map[string]interface{}, int, http.Header)
- func (s *Server) GetRedirectURI(req *oauth.OauthReq, data map[string]interface{}) (uri string, err error)
- func (s *Server) GetTokenData(ti oauth2.TokenInfo) map[string]interface{}
- func (s *Server) HandleAuthorizeRequest(ctx context.Context, req *oauth.OauthReq, token string) (w *response.HttpResponse)
- func (s *Server) HandleTokenRequest(ctx context.Context, r *oauth.OauthReq) (*response.HttpResponse, error)
- func (s *Server) ValidationAuthorizeRequest(req *oauth.OauthReq) error
- func (s *Server) ValidationTokenRequest(r *oauth.OauthReq) (*oauth2.TokenGenerateRequest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
Config *server.Config
Manager oauth2.Manager
ClientAuthorizedHandler oauth3.ClientAuthorizedHandler
ClientScopeHandler oauth3.ClientScopeHandler
UserAuthorizationHandler oauth3.UserAuthorizationHandler
RefreshingScopeHandler oauth3.RefreshingScopeHandler
ResponseErrorHandler oauth3.ResponseErrorHandler
InternalErrorHandler oauth3.InternalErrorHandler
ExtensionFieldsHandler oauth3.ExtensionFieldsHandler
}
func NewDefaultServer ¶
func (*Server) CheckResponseType ¶
func (s *Server) CheckResponseType(rt oauth2.ResponseType) bool
func (*Server) GetAccessToken ¶
func (*Server) GetAuthorizeData ¶
func (*Server) GetAuthorizeToken ¶
func (*Server) GetErrorData ¶
func (*Server) GetRedirectURI ¶
func (*Server) GetTokenData ¶
func (*Server) HandleAuthorizeRequest ¶
func (*Server) HandleTokenRequest ¶
func (*Server) ValidationAuthorizeRequest ¶
func (*Server) ValidationTokenRequest ¶
Click to show internal directories.
Click to hide internal directories.