File tree 2 files changed +15
-0
lines changed
planet_auth_config_injection
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,16 @@ class BuiltinConfigurationProviderInterface(ABC):
51
51
Built-in trust environments are expected to be all uppercase.
52
52
"""
53
53
54
+ def namespace (self ) -> str :
55
+ """
56
+ Application namespace. This will be used as a prefix in various contexts
57
+ so that multiple applications may use the Planet auth libraries in the same
58
+ environment without collisions. Presently, this includes being
59
+ used as a prefix for environment variables, and as a prefix for config
60
+ settings store to the user's `~/.planet.json` file.
61
+ """
62
+ return ""
63
+
54
64
@abstractmethod
55
65
def builtin_client_authclient_config_dicts (self ) -> Dict [str , dict ]:
56
66
"""
Original file line number Diff line number Diff line change @@ -92,6 +92,11 @@ def _load_builtin_jit():
92
92
Builtins ._builtin = _load_builtins ()
93
93
auth_logger .debug (msg = f"Successfully loaded built-in provider: { Builtins ._builtin .__class__ .__name__ } " )
94
94
95
+ @staticmethod
96
+ def namespace () -> str :
97
+ Builtins ._load_builtin_jit ()
98
+ return Builtins ._builtin .namespace ()
99
+
95
100
@staticmethod
96
101
def is_builtin_profile (profile : str ) -> bool :
97
102
Builtins ._load_builtin_jit ()
You can’t perform that action at this time.
0 commit comments