MCPcopy Index your code
hub / github.com/docker/docker-py / decode_auth

Function decode_auth

docker/auth.py:319–324  ·  view source on GitHub ↗
(auth)

Source from the content-addressed store, hash-verified

317
318
319def decode_auth(auth):
320 if isinstance(auth, str):
321 auth = auth.encode('ascii')
322 s = base64.b64decode(auth)
323 login, pwd = s.split(b':', 1)
324 return login.decode('utf8'), pwd.decode('utf8')
325
326
327def encode_header(auth):

Callers 2

parse_authMethod · 0.85
_load_legacy_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected