Add support for using environment variables for credentials
Pre-release
Pre-release
Added a new Client::createInstance()
method that will try to use the environment and fallback to .edgerc
.
This method will check in order:
AKAMAI_{SECTION}_*
environment variables- if using the
default
section,AKAMAI_*
environment variables - the specified (or
default
if none) section in.edgerc
- if not using the
default
section,AKAMAI_*
environment variables
This new method is the recommended way for instantiating an instance.
The environment variables are:
AKAMAI_HOST
orAKAMAI_{SECTION}_HOST
AKAMAI_CLIENT_TOKEN
orAKAMAI_{SECTION}_CLIENT_TOKEN
AKAMAI_CLIENT_SECRET
orAKAMAI_{SECTION}_CLIENT_SECRET
AKAMAI_ACCESS_TOKEN
orAKAMAI_{SECTION}_ACCESS_TOKEN