Repository navigation
Fix: Streaming Auth Context Propagation
This release fixes a bug where the streaming auth interceptor (grpcStreamAuthInterceptor) was discarding the enriched context returned by authFunc. This prevented downstream interceptors from accessing auth claims (e.g., grant type).
Changes
- Add
wrappedServerStreamtype to overrideContext()method - Fix
grpcStreamAuthInterceptorto use the enriched context fromauthFunc - Add comprehensive tests for streaming auth context propagation
Why This Matters
This fix enables grant type validation to work correctly for streaming endpoints. Previously, ClaimsFromContext(ctx) would return nil in streaming handlers, causing grant type checks to be skipped.
Migration
No breaking changes. Simply update your dependency:
```bash
go get github.com/gyozatech/grpckit@v0.0.10
```