Domino server SSO problem

the problem is thatI would like to directly get the webpage content

http://server.nsf/viewname?openview

what should i do?

I cannot directly get the content as it requires authenication.

i have thought about 2 method

  1. get the sessionid of the set-cookie from the page

http://server.nsf?login&username=abc&password=def

and then set the set-cookie field to get the content of

http://server.nsf/viewname?openview

but it doesn’t work

so,

I would like to ask how can the browser log the username and password and make the http request so that it can keep the session.

if the ACL of the server should not be modified, can it be done?

Subject: domino server SSO problem

Where are you running the code to “get the webpage content” and how is it being triggered.

Subject: RE: domino server SSO problem

It is just a java program to get input stream from a url. Thank you in advance.

Subject: RE: domino server SSO problem

It is just a java program to get input stream from a url. Thank you in advance.

Subject: RE: domino server SSO problem

it can be done and you are on the right path so the issue is with the code

  1. Post the code

  2. Create a test database that allows anonymous access

    Create an agent like below

    Instead of trying to get your url “http://server.nsf/viewname?openview” get the url to the agent. this will log the username and cookie value to help in debugging.

Sub Initialize

Dim s As New notessession

Dim doc As NotesDocument

Dim auditDoc As NotesDocument

Dim db As NotesDatabase



Set db = s.CurrentDatabase

Set doc = s.DocumentContext



Set auditdoc = db.CreateDocument



auditDoc.Form = "Audit"

auditDoc.REMOTE_USER = doc.REMOTE_USER(0)

auditDoc.Body = doc.Request_Content(0)	

auditDoc.Cookie = doc.HTTP_COOKIE (0)

Call auditDoc.Save(True, True)

End Sub

Subject: RE: domino server SSO problem

it can be done and you are on the right path so the issue is with the code

  1. Post the code

  2. Create a test database that allows anonymous access

    Create an agent like below

    Instead of trying to get your url “http://server.nsf/viewname?openview” get the url to the agent. this will log the username and cookie value to help in debugging.

Sub Initialize

Dim s As New notessession

Dim doc As NotesDocument

Dim auditDoc As NotesDocument

Dim db As NotesDatabase



Set db = s.CurrentDatabase

Set doc = s.DocumentContext



Set auditdoc = db.CreateDocument



auditDoc.Form = "Audit"

auditDoc.REMOTE_USER = doc.REMOTE_USER(0)

auditDoc.Body = doc.Request_Content(0)	

auditDoc.Cookie = doc.HTTP_COOKIE (0)

Call auditDoc.Save(True, True)

End Sub

Subject: domino server SSO problem

Where are you running the code to “get the webpage content” and how is it being triggered.