hydraproxy

package
v0.9.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL