I used this way to get a xPages based view displayed in an external application like an embedded view.
http://servername/names.nsf?Login&Username=username&Password=password&redirectto=databasename.nsf
With this way the authentication was made with the login credentials and was directly rerouted to the needed database