x/authenticator.go
// 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)
}