Add authentication scheme selection

Authentication scheme can be basic or digest.
The default digest behavior has been kept.
after label merge
correction about nullable parameter
auth_scheme after merge from greg7859
Merge pull request #1 from mildis/auth_scheme

Auth scheme