Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
|
df8f9d2dcd | |
|
4600b89e45 | |
|
ce22e6a437 |
|
@ -94,4 +94,6 @@ class NacosServerConnector:
|
|||
async def inject_security_info(self, headers):
|
||||
if self.client_config.username and self.client_config.password:
|
||||
access_token = await self.auth_client.get_access_token(False)
|
||||
headers[Constants.ACCESS_TOKEN] = access_token
|
||||
if access_token is not None and access_token != "":
|
||||
headers[Constants.ACCESS_TOKEN] = access_token
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue