mirror of https://github.com/ory/hydra
21 lines
381 B
Go
21 lines
381 B
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)
|
|
}
|