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

Method validate

web/pgadmin/authenticate/__init__.py:274–284  ·  view source on GitHub ↗

Validate through all the sources.

(self)

Source from the content-addressed store, hash-verified

272 return self.source_friendly_name
273
274 def validate(self):
275 """Validate through all the sources."""
276 err_msg = None
277 for src in self.auth_sources:
278 source = get_auth_sources(src)
279 status, err_msg = source.validate(self.form)
280 if status:
281 return True
282 if err_msg:
283 flash(err_msg, MessageType.WARNING)
284 return False
285
286 def authenticate(self):
287 """Authenticate through all the sources."""

Callers 1

_loginFunction · 0.95

Calls 1

get_auth_sourcesFunction · 0.85

Tested by

no test coverage detected