Performing a login before findObjects and digest

Performing a login before findObjects and digest to work also in "no public crypto" mode.