MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / validate_credentials

Method validate_credentials

web/pgadmin/misc/cloud/rds/__init__.py:235–243  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

233 DBInstanceIdentifier=instance_name)
234
235 def validate_credentials(self):
236 client = self._get_aws_client('sts')
237 try:
238 identity = client.get_caller_identity()
239 return True, identity
240 except Exception as e:
241 return False, str(e)
242 finally:
243 self._clients.pop('sts')
244
245
246def _get_rds_from_session():

Callers 1

verify_credentialsFunction · 0.95

Calls 2

_get_aws_clientMethod · 0.95
popMethod · 0.80

Tested by

no test coverage detected