Hi,
We had a requirement to open the document content using the URL from the eMail in a D2 environment with SSO enabled. Customer is using D2 4.5 version. We found that Download servlet works only with basic authentication which was not acceptable for the customer.
Sample URL using Download servlet: http://<app-server>/D2/servlet/Download?event_name=d2_view&id=09xxxxxxxxx&_docbase=<docbase>&c2_config_name=<c2 config name>&format=pdf
Searching on community and in official documentation we found no solution. Analyzing the web.xml of the D2 we found the DispatchDownload servlet. This one make use of the SSO, could be also of the cookies, and obtains the link containing the ticket and redirects it to the Download servlet.
Sample URL with DispatchDownload servlet:
http://<app-server>/D2/servlet/DispatchDownload?event_name=d2_view&id=09xxxxxxxxx&_docbase=<docbase>&c2_config_name=<c2 config name>&format=pdf
P.S: Seems that starting from D2 4.6, the Download servlet works similar as DispatchDownload.