fakehydra

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package fakehydra contains fake hydra server for testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	GetLoginRequestReq    string
	GetLoginRequestErr    *hydraapi.GenericError
	GetLoginRequestResp   *hydraapi.LoginRequest
	AcceptLoginReq        *hydraapi.HandledLoginRequest
	AcceptLoginErr        *hydraapi.GenericError
	AcceptLoginResp       *hydraapi.RequestHandlerResponse
	RejectLoginReq        *hydraapi.RequestDeniedError
	RejectLoginErr        *hydraapi.GenericError
	RejectLoginResp       *hydraapi.RequestHandlerResponse
	GetConsentRequestReq  string
	GetConsentRequestErr  *hydraapi.GenericError
	GetConsentRequestResp *hydraapi.ConsentRequest
	AcceptConsentReq      *hydraapi.HandledConsentRequest
	AcceptConsentErr      *hydraapi.GenericError
	AcceptConsentResp     *hydraapi.RequestHandlerResponse
	RejectConsentReq      *hydraapi.RequestDeniedError
	RejectConsentErr      *hydraapi.GenericError
	RejectConsentResp     *hydraapi.RequestHandlerResponse
	ListClientsErr        *hydraapi.GenericError
	ListClientsResp       []*hydraapi.Client
	CreateClientReq       *hydraapi.Client
	CreateClientErr       *hydraapi.GenericError
	CreateClientResp      *hydraapi.Client
	GetClientID           string
	GetClientErr          *hydraapi.GenericError
	GetClientResp         *hydraapi.Client
	UpdateClientID        string
	UpdateClientReq       *hydraapi.Client
	UpdateClientErr       *hydraapi.GenericError
	UpdateClientResp      *hydraapi.Client
	DeleteClientID        string
	DeleteClientErr       *hydraapi.GenericError
	IntrospectionReqToken string
	IntrospectionResp     *hydraapi.Introspection
	IntrospectionErr      *hydraapi.GenericError
	ListConsentsReq       string
	ListConsentsResp      []*hydraapi.PreviousConsentSession
	ListConsentsErr       *hydraapi.GenericError
	RevokeConsentsReq     *http.Request
	RevokeConsentsErr     *hydraapi.GenericError
	RevokeTokenReq        string
	RevokeTokenErr        *hydraapi.GenericError
	ExchangeTokenReqURL   string
	ExchangeTokenReq      url.Values
}

Data stores data in fake hydra server. Make it easier to reset.

type Server

type Server struct {
	Data
}

Server is fake hydra server.

func New

func New(r *mux.Router) *Server

New creates fake hydra server.

func (*Server) Clear

func (s *Server) Clear()

Clear states in fake hydra server.

Jump to

Keyboard shortcuts

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