Hello,
I've created a codepen demonstrating an issue with the IdentityManger we are experiencing, where we register a token and then when adding a layer to the map there are 2 requests made when there should be one. The first request sends an error "Token Required" response followed by a duplicate request that successfully gets the data. The first request is missing the token from the URL despite previously adding the token via the IdentityManger. See image below:
In order to test this bug you will need to add your layer url/token/server info in the codepen where I have added an 'ADD' comment.
First click the "Register Token" button followed by the "Add to Map" button.