Documentation ¶
Overview ¶
Package hydraproxy contains a hydra proxy service to proxy request to hydra if needed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the service proxy the request to hydra.
func New ¶
func New(client *http.Client, hydraAdminURL, hydraPublicURLInternal string, store storage.Store) (*Service, error)
New creates the hydra proxy service.
func (*Service) HydraOAuthToken ¶
func (s *Service) HydraOAuthToken(w http.ResponseWriter, r *http.Request)
HydraOAuthToken proxy the POST /oauth2/token request. - for code exhange token: do nothing, just proxy. - for refresh token exchange token: check the token is not revoked before proxy the request. TODO: should unify with HydraOAuthToken in DAM.
Click to show internal directories.
Click to hide internal directories.