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
{{ message }}
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
:description: Implements both ``configauth.ServerAuthenticator`` and ``configauth.ClientAuthenticator``. It can be used in both http and gRPC exporters inside the ``auth`` settings to embed a static token for every RPC call made.
9
9
10
-
The Splunk Distribution of the OpenTelemetry Collector supports the Authenticator - Bearer extension. Documentation is planned for a future release.
10
+
The ``basicauth`` extension implements both ``configauth.ServerAuthenticator`` and ``configauth.ClientAuthenticator`` to authenticate clients and servers using basic authentication. The authenticator type has to be set to ``basicauth``.
11
+
12
+
When used to authenticate servers, if the authentication is successful, ``client.Info.Auth`` exposes the following attributes:
13
+
14
+
* ``username``: The username of the authenticated user.
15
+
* ``raw``: Raw base64 encoded credentials.
16
+
17
+
.. caution:: You can either authenticate servers or clients with the extension. If you configure both options, the extension throws an error. See more in :ref:`basic-auth-extension-settings`.
18
+
19
+
Get started
20
+
======================
21
+
22
+
Follow these steps to configure and activate the component:
23
+
24
+
1. Deploy the Splunk Distribution of the the OpenTelemetry Collector to your host or container platform:
25
+
26
+
- :ref:`otel-install-linux`
27
+
- :ref:`otel-install-windows`
28
+
- :ref:`otel-install-k8s`
29
+
30
+
2. Configure the ``basicauth`` extension as described in the next section.
31
+
3. Restart the Collector.
32
+
33
+
Sample configurations
34
+
--------------------------------------------
35
+
36
+
To activate the component add ``basicauth`` to the ``extensions`` section of your configuration file, as shown in the following example:
You can either authenticate servers or clients with the extension. If you configure both options, the extension throws an error.
129
+
130
+
* To configure the extension as a server authenticator, set either ``htpasswd.file`` or ``htpasswd.inline``. If you configure both, ``htpasswd.inline`` credentials takes precedence.
131
+
132
+
* To configure the extension as a client authenticator, set ``client_auth``.
To find information about this component in the meantime, see :new-page:`Authenticator Bearer extension <https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/bearertokenauthextension>` on GitHub.
0 commit comments