integarte basic auth and sessions