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

Method _validate_auth_token

awscli/botocore/credentials.py:2114–2116  ·  view source on GitHub ↗
(self, auth_token)

Source from the content-addressed store, hash-verified

2112 return {'Authorization': auth_token}
2113
2114 def _validate_auth_token(self, auth_token):
2115 if "\r" in auth_token or "\n" in auth_token:
2116 raise ValueError("Auth token value is not a legal header value")
2117
2118 def _create_fetcher(self, full_uri, headers):
2119 def fetch_creds():

Callers 1

_build_headersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected