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

Method as_dict

web/pgadmin/authenticate/__init__.py:218–228  ·  view source on GitHub ↗

Returns the dictionary object representing this object.

(self)

Source from the content-addressed store, hash-verified

216 self.update_auth_sources()
217
218 def as_dict(self):
219 """
220 Returns the dictionary object representing this object.
221 """
222
223 res = dict()
224 res['source_friendly_name'] = self.source_friendly_name
225 res['auth_sources'] = self.auth_sources
226 res['current_source'] = self.current_source
227
228 return res
229
230 def update_auth_sources(self):
231 # Only mutate the ordered list of auth sources when a user explicitly

Callers 3

reset_passwordFunction · 0.95
oauth_authorizeFunction · 0.95
_loginFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected