Skip to content

Client Authentication

RFC 6749 §2.3 · package rfc6749/client_authentication

Every grant that involves a confidential client needs a way for that client to authenticate itself at /token. This package implements the client authentication methods defined in RFC 6749 §2.3.

Supported methods

MethodDescription
client_secret_basicClient ID and secret sent via HTTP Basic Auth on the request.
client_secret_postClient ID and secret sent as form parameters in the request body.
noneNo client secret — used for public clients (SPAs, native apps) that instead rely on PKCE to prove request integrity.

Usage

Client authentication is consumed internally by the grant flows (authorization_code, ropc, client_credentials) through the ClientManager you supply — you don't typically call this package directly. It determines how the flow verifies the client identity presented on the /token request against what your ClientManager returns.

See also

  • ModelsClientManager interface reference.
  • PKCE — the proof mechanism public clients (none) use instead of a secret.

Released under the BSD-3-Clause License.