Path: redb-identity/src/redb.Identity.Client/Auth/IAccessTokenProvider.cs
Snapshot: redb-identity, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-identity
Page: https://redbase.app/src/dev-2026-12-06/redb-identity/src/redb.Identity.Client/Auth/IAccessTokenProvider.cs
----
namespace redb.Identity.Client.Auth;
///
/// Resolves a bearer access token for outgoing Identity API calls.
/// Implementations:
/// - HttpContextAccessTokenProvider (in redb.Identity.Web) — reads from cookie session
/// - — for CLI / server-to-server
///
public interface IAccessTokenProvider
{
Task GetAccessTokenAsync(CancellationToken ct = default);
}