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

Class AuthLocker

web/pgadmin/authenticate/__init__.py:38–48  ·  view source on GitHub ↗

Implementing lock while authentication.

Source from the content-addressed store, hash-verified

36
37
38class AuthLocker:
39 """Implementing lock while authentication."""
40 lock = Lock()
41
42 def __enter__(self):
43 self.lock.acquire()
44 return self
45
46 def __exit__(self, type, value, traceback):
47 if self.lock.locked():
48 self.lock.release()
49
50
51def get_logout_url() -> str:

Callers 1

loginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected