Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] Reuse HttpClient session in Browser

Nils,

I would caution against this since the password can appear plaintext in the address bar, error pages, and history. Also depending on the server's logging settings, it could get put in a server log. The extra login is annoying, but I'm not sure it's worth the risk.

One approach you might consider is to use OAuth. As part of the OAuth flow, you show a browser window for the user to login. This OAuth login actually establishes a session with RTC, so I don't think the user will have to login again when you show the preview.

--
Samuel Padgett | IBM Rational | spadgett@xxxxxxxxxx


Inactive hide details for Nils Kronqvist ---05/13/2013 03:06:02 PM---On 13 maj 2013, at 19:53, Michael Fiedler <fiedler.mf@gmaiNils Kronqvist ---05/13/2013 03:06:02 PM---On 13 maj 2013, at 19:53, Michael Fiedler <fiedler.mf@xxxxxxxxx> wrote: > I don't believe this can b


    From:

Nils Kronqvist <nissekronqvist@xxxxxxxxxxx>

    To:

Lyo project developer discussions <lyo-dev@xxxxxxxxxxx>

    Date:

05/13/2013 03:06 PM

    Subject:

Re: [lyo-dev] Reuse HttpClient session in Browser

    Sent by:

lyo-dev-bounces@xxxxxxxxxxx





On 13 maj 2013, at 19:53, Michael Fiedler <fiedler.mf@xxxxxxxxx> wrote:
    I don't believe this can be done (someone correct me if I'm wrong here).   RTC relies on session-specific information (cookies like JSESSIONID) to tell if you are authenticated.   Since the browser would have its own session, there's no way to "share" your existing JazzFormAuthClient's authentication.  The form auth code does do exactly what you did to login by hitting the j_security_check URL.   It follows some redirects to get there and picks up some cookies on the way.   So, that is not an incorrect way to do it.
[Nils] OK, thanks. I guess my main issue is the showing of the pw in plaintext in the error message.
    Are  you able to hit the login URL and then send the SWT Browser to the real url you want?
[Nils] Yes, that is working. _______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/lyo-dev


GIF image

GIF image


Back to the top