hydra

package
v0.11.0-alpha.0.pre.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FAKE_GET_LOGIN_REQUEST_RETURN_NIL_NIL = "b805f2d9-2f6d-4745-9d68-a17f48e25774"
	FAKE_ACCEPT_REQUEST_FAIL              = "2e98454e-031b-4870-9ad6-8517df1ce604"
	FAKE_SUCCESS                          = "5ff59a39-ecc5-467e-bb10-26644c0700ee"
)

Variables

This section is empty.

Functions

func GetLoginChallengeID

func GetLoginChallengeID(conf *config.Config, r *http.Request) (uuid.NullUUID, error)

Types

type DefaultHydra

type DefaultHydra struct {
	// contains filtered or unexported fields
}

func NewDefaultHydra

func NewDefaultHydra(d hydraDependencies) *DefaultHydra

func (*DefaultHydra) AcceptLoginRequest

func (h *DefaultHydra) AcceptLoginRequest(ctx context.Context, hlc uuid.UUID, sub string, amr session.AuthenticationMethods) (string, error)

func (*DefaultHydra) GetLoginRequest

type FakeHydra

type FakeHydra struct{}

func NewFakeHydra

func NewFakeHydra() *FakeHydra

func (*FakeHydra) AcceptLoginRequest

func (h *FakeHydra) AcceptLoginRequest(ctx context.Context, hlc uuid.UUID, sub string, amr session.AuthenticationMethods) (string, error)

func (*FakeHydra) GetLoginRequest

func (h *FakeHydra) GetLoginRequest(ctx context.Context, hlc uuid.NullUUID) (*hydraclientgo.OAuth2LoginRequest, error)

type Hydra

type Hydra interface {
	AcceptLoginRequest(ctx context.Context, hlc uuid.UUID, sub string, amr session.AuthenticationMethods) (string, error)
	GetLoginRequest(ctx context.Context, hlc uuid.NullUUID) (*hydraclientgo.OAuth2LoginRequest, error)
}

type HydraProvider

type HydraProvider interface {
	Hydra() Hydra
}

Jump to

Keyboard shortcuts

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