MCPcopy
hub / github.com/feast-dev/feast / get_auth_manager

Function get_auth_manager

sdk/python/feast/permissions/auth/auth_manager.py:36–48  ·  view source on GitHub ↗

Return the global instance of `AuthManager`. Raises: RuntimeError if the clobal instance is not set.

()

Source from the content-addressed store, hash-verified

34
35
36def get_auth_manager() -> AuthManager:
37 """
38 Return the global instance of `AuthManager`.
39
40 Raises:
41 RuntimeError if the clobal instance is not set.
42 """
43 global _auth_manager
44 if _auth_manager is None:
45 raise RuntimeError(
46 "AuthManager is not initialized. Call 'set_auth_manager' first."
47 )
48 return _auth_manager
49
50
51def set_auth_manager(auth_manager: AuthManager):

Callers 5

intercept_serviceMethod · 0.90
start_callMethod · 0.90
extract_userMethod · 0.90
inject_user_detailsFunction · 0.90
_init_authMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected