Skip to Content
author's profile photo Former Member
Former Member

SSO ticket wont work for displaying contents of internally stored files

Thx to the help I got here the application here is all in all running well with SSO as authentification method.

But the application has a part where it tries to open & display files stored in the backend (e.g. Excel-Sheets, TIFs etc).

This part was running fine with the old basic authentification, but now it opens the application and then seems to try to authenticate again (at least that's how it looks in excel as there is shown the login-dialog again).

Any way I can work around that - at the moment it makes an important part of the application useless :\.

Method used to display:

gets the data, transfers it to a xstring and then sends it to the browser via:

lf_value = lf_mimetype.

response->set_header_field( name = 'Content-Type'

value = lf_value ).

response->delete_header_field( 'Cache-Control' ).

response->delete_header_field( 'Expires' ).

response->delete_header_field( 'Pragma' ).

lf_value = lf_filename.

CONCATENATE 'inline; filename="' lf_filename INTO lf_value.

response->set_header_field( name = 'Content-Disposition'

value = lf_value ).

response->set_data( lf_content ).

navigation->response_complete( ).

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Posted on Jul 30, 2004 at 09:33 PM

    Hallo Werner,

    I read this question of you a number of times, and must admit I can not clearly understand the question.

    (1) You write in the title "internally stored files". Hmmm... what exactly is this.

    (2) You decribe a problem with an application opens documents.

    (3) You write some example just to download a document.

    I am still missing a part of the puzzle.

    >SSO as authentification method.

    Unless you have a portal in use, SSO2 is not the first authentication method. It is basic Authentication (did you get the popup initially?). Thereafter the SSO2 cookie was set. So both is usually available.

    Can you make a HTTP trace and look at it?


    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2004 at 12:12 PM


    Well first thing is, now after fooling around a bit and changing some code it works - though first method I used too was as described in I think a weblog from you for showing documents inline.

    In my case there are files of different types stored via cfolders...and my application (after login in via a copy of the system/login application) amongst other things enables a web-based search & display of these files.

    For this I fetch the contents of the file from the backend and then deliver the contents to http.

    As I said, worked with basic authentification but had troubles after switching to the login-application.

    Just my guess that it was the ticket gettin lost as i had the effect described above with excel.

    Problem is that this project after gettin display to work again was completed and so now into a new project at a different company-location & system so cant make the trace.

    Thx for helpin and sorry I had let this open - just was curious if this problem could be solved some better way then mine.

    Add comment
    10|10000 characters needed characters exceeded