Documentation ¶
Index ¶
- func AddAuthError(u *url.URL) *url.URL
- func AddLoginError(u *url.URL) *url.URL
- func FirstPartyOAuth2LoginRedirPath(u *url.URL) (string, error)
- type Server
- func (o *Server) CreateProxyCredentials(ctx util.Context, userID string) (id string, err error)
- func (o *Server) HandleAccessTokenRequest(w http.ResponseWriter, r *http.Request)
- func (o *Server) HandleAuthorizationRequest(w http.ResponseWriter, r *http.Request)
- func (o *Server) RefreshProxyCredentialsIfNeeded(ctx util.Context, id, userID string) error
- func (o *Server) RemoveByAccess(ctx util.Context, t oauth2.TokenInfo) error
- func (o *Server) RemoveFirstPartyProxyAccessToken(w http.ResponseWriter, r *http.Request, ctx util.Context, sn *web.Session) error
- func (o *Server) Start()
- func (o *Server) Stop()
- func (o *Server) Validate(w http.ResponseWriter, r *http.Request) (userID string, auth bool, err error)
- func (o *Server) ValidateFirstPartyProxyAccessToken(ctx util.Context, sn *web.Session) (id, userID string, authenticated bool, err error)
- func (o *Server) ValidateOAuth2AccessToken(w http.ResponseWriter, r *http.Request) (token oauth2.TokenInfo, authenticated bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CreateProxyCredentials ¶
func (*Server) HandleAccessTokenRequest ¶
func (o *Server) HandleAccessTokenRequest(w http.ResponseWriter, r *http.Request)
func (*Server) HandleAuthorizationRequest ¶
func (o *Server) HandleAuthorizationRequest(w http.ResponseWriter, r *http.Request)
func (*Server) RefreshProxyCredentialsIfNeeded ¶
func (*Server) RemoveByAccess ¶
func (*Server) RemoveFirstPartyProxyAccessToken ¶
func (*Server) ValidateFirstPartyProxyAccessToken ¶
Click to show internal directories.
Click to hide internal directories.