Reputation: 865
I have a following use case for which I need some pointers/hints/approaches for the solution.
I have to make a login screen for android app following which there will be other screens that would do REST based calls with the server hosted at Domino.
Now for login activity i think that basic authentication seems to be easiest solution (please correct me if i am wrong). The server already has the functionality to support web based application (session based communication which browser handles automatically with domino).
Now the problem part
I understand that in case of basic authentication we pass user id and password with each calls to the server. My main question is that how server handles this user id and password ? does it do some kind of checks each time to check the user permissions for relevant operations ?
Thanks
Upvotes: 1
Views: 1032
Reputation: 14628
Re this:
I suspect Domino does not allow you to access session ID or DOM auth ID which browser intrinsically passes in case of web based application. How can I achieve this functionality from android app
Domino just uses cookies to pass the session info back and forth to the client. Depending on which type of session authentication you have set up on the server, it's either DomAuthSessId or LtpaToken. See here for more info.
So I'm going to disagree with you about the presumption that basic authentication is the easiest way to go. If the server is already set up for session authentication, then all you would have to do is make sure that you get the cookie from the response to your login screen and add it to all your HTTP calls and you'll be have your session.
Upvotes: 2