The useAttributeAsKey is necessary for XML configuration, not for yaml, in this case it works like:

```xml
<header name="Authorization">ValueForAuthHeader</header>
```