Check if the credentials are already present.
Add realm to connect request.
Test authentication which doesn't 401 on first call.