MCPcopy Create free account
hub / github.com/aws/aws-cli / LoginCredentialsLoader

Class LoginCredentialsLoader

awscli/botocore/utils.py:4171–4187  ·  view source on GitHub ↗

Loads and saves login access tokens to disk

Source from the content-addressed store, hash-verified

4169
4170
4171class LoginCredentialsLoader:
4172 """Loads and saves login access tokens to disk"""
4173
4174 def __init__(self, cache=None):
4175 if cache is None:
4176 cache = {}
4177 self._cache = cache
4178
4179 def save_token(self, session_name, token):
4180 cache_key = generate_login_cache_key(session_name)
4181 self._cache[cache_key] = token
4182
4183 def load_token(self, session_name):
4184 cache_key = generate_login_cache_key(session_name)
4185 if cache_key not in self._cache:
4186 return None
4187 return self._cache[cache_key]
4188
4189
4190def base64_url_encode_no_padding(data):

Callers 4

loadMethod · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by 2