I'm on Windows 2012 R2 and have IIS Express on it. How enable digest or basic auth in IIS Express and where set the username/password?
Enable digest or basic auth in Web.config file
then run
iisexpress /config:c:\myconfig\web.config
Reference: IIS Express FAQ stated
Q: Does IIS Express use the same configuration system as IIS? A: Yes