← ClaudeAtlas

kora-http-client-authlisted

Auth for outgoing Kora HTTP clients — Basic/ApiKey/Bearer interceptors, HttpClientTokenProvider, @InterceptWith, custom OAuth2/JWT schemes. Use when authorizing a @HttpClient or debugging 401s. For server-side auth see kora-http-server-auth.
kora-projects/kora-skills · ★ 1 · API & Backend · score 72
Install: claude install-skill kora-projects/kora-skills
# Kora HTTP Client Auth > **Kora sub-skill — obey the [kora-v1 meta rules](../../SKILL.md) on every task:** **R0** ensure `.kora-agent/` docs+examples are cloned · **R1** read this sub-skill before writing code · **R2** Kora APIs only — no Spring/Micronaut/Quarkus, no invented annotations or config keys · **R3** journal any incorrect Kora usage. Add comments/Javadoc only if asked. Authenticate outgoing requests from a declarative `@HttpClient`. Kora ships ready-made `HttpClientInterceptor` implementations for Basic, API-key and Bearer schemes; attach any interceptor with `@InterceptWith`. For dynamic tokens (OAuth2 client credentials, refreshable JWT) you implement `HttpClientTokenProvider` or write your own `HttpClientInterceptor`. **Level:** Intermediate (requires `kora-http-client` and `kora-di-compile`). **Key facts (verify against the source of truth):** - There is **no** `ru.tinkoff.kora:http-client-auth` artifact. Auth lives in `http-client-common` and is wired through interceptors. - Built-in interceptors: `BasicAuthHttpClientInterceptor`, `ApiKeyHttpClientInterceptor`, `BearerAuthHttpClientInterceptor`. - `HttpClientTokenProvider` is the extension point for Bearer tokens; the Bearer interceptor calls it on every request. - Interceptors are attached with `@InterceptWith(...)`, **not** an `interceptors = {...}` attribute on `@HttpClient`. - The target URL is set in config (`httpClient.<client>.url`), **not** a `baseUrl` annotation attribute. --- ## Quic