add use for BasicAuthentication to example code