Regenerate token when invalid JWT token is used to connect to NSX
JWT token used to authenticate with NSX can become invalid before expiration due to VC service account credentials refresh. When this case happens nsxlib should immediately re-get-token using the latest creds and refresh request headers. Change-Id: I1e3415379926f07e7b30eeaf44e9bcc7e2a26e9e
This commit is contained in:
		@@ -151,6 +151,10 @@ class BadXSRFToken(ManagerError):
 | 
			
		||||
    message = _("Bad or expired XSRF token")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class InvalidCredentials(ManagerError):
 | 
			
		||||
    message = _("Failed to authenticate with NSX: %(msg)s")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class BadJSONWebTokenProviderRequest(NsxLibException):
 | 
			
		||||
    message = _("Bad or expired JSON web token request from provider: %(msg)s")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user