Kora HTTP Server Auth

HTTP server authentication in Kora 2.0 — HttpServerPrincipalExtractor<T, P> bound by @Tag(ApiSecurity.<SchemeName>.class), io.koraframework.common.Principal carried to the handler through Principal.with/Principal.current (a ScopedValue), PrincipalWithScopes for oauth2 scopes, and HttpServerResponseException for 401/403. Use when securing @HttpController endpoints, wiring an OpenAPI securityScheme, writing a global @Tag(HttpServer.class) auth interceptor, or fixing auth that silently stopped running after a Kora 1.x migration.

kora-projects df24805 9 files · 75.6 KB Updated

File contents

kora-projects/kora-skills/tree/main/plugins/kora-v2/skills/kora-http-server-auth commit df248058dc

Frequently asked questions

npx skillmds@latest add kora-projects/kora-http-server-auth-2