...
At first you need to obtain the Bearer token from an OAuth2 exchange flow where the login credentials will be exchanged to a Bearer token. How this is done is out of the scope of this documentation. Please refer to your OAuth2 service for more information here.
Then, you can set the Bearer token like this:
...