syn.login('asdfasdfasdf') should fail
What does it do now?
Verified fixed py-1.7.
The username is required for _generateSignedHeaders() and if the username does not match the API key we get back a 401 error.
Also it seems that syn.login('asdfasdfasdf') only works if there is a .synapseConfig with [authentication] defined otherwise it will fail.
Also, syn.login(apiKey='...') should work. It now requires email/username without much reason.