realm in config expected to provide port as part of uri
in order to support virtual hosts