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

Method login

web/pgadmin/authenticate/__init__.py:310–324  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

308 return status, msg
309
310 def login(self):
311 status, msg = self.source.login(self.form)
312 if status:
313 self.set_source_friendly_name(self.source.get_friendly_name())
314 current_app.logger.debug(
315 "Authentication and Login successfully done via source : %s" %
316 self.source.get_source_name())
317
318 # Set the login, logout view as per source if available
319 current_app.login_manager.login_view = getattr(
320 self.source, 'LOGIN_VIEW', 'security.login')
321 current_app.login_manager.logout_view = getattr(
322 self.source, 'LOGOUT_VIEW', 'security.logout')
323
324 return status, msg
325
326
327def get_auth_sources(type):

Callers 2

oauth_authorizeFunction · 0.95
_loginFunction · 0.95

Calls 3

get_friendly_nameMethod · 0.45
get_source_nameMethod · 0.45

Tested by

no test coverage detected