You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`"x-databricks-zerobus-table-name": "<table_name>"` - The fully qualified table name
502
+
503
+
### Advanced: Custom Headers
504
+
505
+
For advanced use cases where you need to provide custom headers (e.g., for future authentication methods or additional metadata), you can implement a custom `HeadersProvider`:
506
+
507
+
```python
508
+
from zerobus.sdk.shared.headers_provider import HeadersProvider
Creates a new ingestion stream using a custom headers provider. For advanced use cases only where custom headers are required. Returns a `ZerobusStream` instance.
569
659
570
660
---
571
661
@@ -586,7 +676,22 @@ async def create_stream(
586
676
options: StreamConfigurationOptions =None
587
677
) -> ZerobusStream
588
678
```
589
-
Creates a new ingestion stream. Returns a `ZerobusStream` instance.
679
+
Creates a new ingestion stream using OAuth 2.0 Client Credentials authentication.
680
+
681
+
Automatically includes these headers:
682
+
-`"authorization": "Bearer <oauth_token>"` (fetched via OAuth 2.0 Client Credentials flow)
Creates a new ingestion stream using a custom headers provider. For advanced use cases only where custom headers are required. Returns a `ZerobusStream` instance.
590
695
591
696
---
592
697
@@ -683,6 +788,62 @@ Returns the protobuf message descriptor.
683
788
684
789
---
685
790
791
+
### HeadersProvider
792
+
793
+
Abstract base classfor providing headers to gRPC streams. For advanced use cases only.
794
+
795
+
**Abstract Method:**
796
+
797
+
```python
798
+
@abstractmethod
799
+
def get_headers(self) -> List[Tuple[str, str]]
800
+
```
801
+
Returns headers for gRPC metadata as a list of (header_name, header_value) tuples.
0 commit comments