ory-am/hydra

View on GitHub
x/authenticator.go

Summary

Maintainability
A
0 mins
Test Coverage
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package x

import (
    "context"
    "net/http"
    "net/url"

    "github.com/ory/fosite"
)

type ClientAuthenticatorProvider interface {
    ClientAuthenticator() ClientAuthenticator
}

type ClientAuthenticator interface {
    AuthenticateClient(ctx context.Context, r *http.Request, form url.Values) (fosite.Client, error)
}