11/9/2022 0 Comments Lotus notes client replication logNow, before finishing, this code will not be running properly :) We should include some warnings.įirst of all, no need to say that: You have to use it on multi-server SSO and your configuration should be working properly. For example a common method can be created inside a script library. You can modify this to use it on anywhere. This code can be placed inside a form for testing. ' TestAuth' is the name of the Java agent. Here ' /test/redirect.nsf/redirect.xsp' is the xpages URI we created before. TargetUrl=webServer+redirector+"?token="+doc.token(0)+"&url="+target Redirector="/test/redirect.nsf/redirect.xsp" If anything goes wrong, we will return an error message back. We need to pass the token we created back to the caller. String token=session.getSessionToken(db.getServer()) ĭoc.replaceItemValue("ErrorLog", e.toString()) The code is here:ĪgentContext agentContext = session.getAgentContext() ĭatabase db=session.getCurrentDatabase() ĭocument doc=agentContext.getDocumentContext() So we will be using a Java agent for this. Unfortunately it is not provided in Lotusscript classes. We will use "session.getSessionToken()" method for this. We need to create a session token for this implementation. I generated a form element and an agent to accomplish this. Now, suppose we have an application and we need to send the user to a web application on the same server without login. We may lookup this from the server but there is no need to create a lookup cost, so type in manually. Here, be careful about the domain parameter at the cookie setting. 'token' parameter takes the hashed LTPAToken string and 'url' parameter is used for target url. We may use a web agent (lotusscript) for this. We first develop a redirector agent for general purposes. In addition, I am assuming you have read the post above and skipping some technical details about SSO and LTPAToken concepts. reporting) etc.īefore I explain the solution, I want to thank Tim Tripcony, because I am using his suggestion. You may have additional interfaces using XPages for your Notes applications (e.g. Some applications listed here may be web applications. You may have a portal-like application, listing different applications that user may access. What may be the purpose of such a tool? One use may be your home page for Lotus Notes users. In addition, some companies have multiple AD domains which makes SPNEGO implementation very difficult. But here are two problems: You need to upgrade your server, configure SPNEGO and only Internet Explorer and certain Firefox versions will be able to use SPNEGO. By the version 8.5.x, we have SSO with Active directory (SPNEGO). Some companies have problems with password syncronization between Notes password and Internet password and this results in a serious headache! Normally, if you are using hybrid application scheme (that is your users are accessing both notes apps and web apps), they need to login to Domino Web server each time. Because for over 5 years I were searching for such a solution. When a user clicks a link inside a Notes Client application, we may authenticate him on the web server application (either XPages or 'legacy' (!) web application). In one of my previous posts, I mentioned about a way to authenticate user for a web application inside an iFrame in XPiNC page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |