The Authorized versions of clients for AAS/SM Repo and AAS/SM Registry was using wrong mechanism to retrieve access tokens, because of this wrong behavior, new token was not getting retrieved once the initial token was expired.
This PR removes the one-time addition of the Authorization header at the time of instantiation of AuthorizedConnected*, and pass the TokenManager directly to the APIs, so that token can be requested each time and not use a single token for each request.
Description of Changes
The Authorized versions of clients for AAS/SM Repo and AAS/SM Registry was using wrong mechanism to retrieve access tokens, because of this wrong behavior, new token was not getting retrieved once the initial token was expired.
This PR removes the one-time addition of the Authorization header at the time of instantiation of AuthorizedConnected*, and pass the TokenManager directly to the APIs, so that token can be requested each time and not use a single token for each request.