Documentation ¶
Index ¶
Constants ¶
View Source
const ( FakeInvalidLoginChallenge = "2e98454e-031b-4870-9ad6-8517df1ce604" FakeValidLoginChallenge = "5ff59a39-ecc5-467e-bb10-26644c0700ee" FakePostLoginURL = "https://www.ory.sh/fake-post-login" )
Variables ¶
View Source
var ErrFakeAcceptLoginRequestFailed = errors.New("failed to accept login request")
Functions ¶
func GetLoginChallengeID ¶
Types ¶
type AcceptLoginRequestParams ¶ added in v1.1.0
type AcceptLoginRequestParams struct { LoginChallenge string IdentityID string SessionID string AuthenticationMethods session.AuthenticationMethods }
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, params AcceptLoginRequestParams) (string, error)
func (*DefaultHydra) GetLoginRequest ¶
func (h *DefaultHydra) GetLoginRequest(ctx context.Context, loginChallenge string) (*hydraclientgo.OAuth2LoginRequest, error)
type FakeHydra ¶
func (*FakeHydra) AcceptLoginRequest ¶
func (*FakeHydra) GetLoginRequest ¶
func (h *FakeHydra) GetLoginRequest(_ context.Context, loginChallenge string) (*hydraclientgo.OAuth2LoginRequest, error)
type Hydra ¶
type Hydra interface { AcceptLoginRequest(ctx context.Context, params AcceptLoginRequestParams) (string, error) GetLoginRequest(ctx context.Context, loginChallenge string) (*hydraclientgo.OAuth2LoginRequest, error) }
Click to show internal directories.
Click to hide internal directories.