External Urls, FileTransfer Plugin, and Secure File Opening

2 posts, 0 answers
  1. Bill
    Bill avatar
    75 posts
    Member since:
    Feb 2013

    Posted 11 Mar 2014 Link to this post

    We need some advice on opening secure external files.  We are using remote views which are rendered from our MVC application using partial views.  Once logged in, a session is created for the user on our web server.  The session persists the user's security context.  Unfortunately, we ran into a problem with sessions and wanting to open secure documents on the mobile app.

    I've viewed the examples on how to open external PDFs.  This would work, but when you invoke the external URL, a new browser is created and thus, a new session is created.  As a result, the user's security context is gone and we deny the request.

    So, I thought I would use the FileTransfer plugin to download the PDF documents to local temporary storage and then open the PDF from the local file system within the app.  I soon discovered that the FileTransfer plugin request also creates a brand new session!  As a result, the user's security context is gone and the request is denied again.

    Any thoughts on how I can make an external URL request in kendo mobile which maintains the current session?

    - OR -

    How to use the FileTransfer plugin to download files using an http post request?  This would not be optimal, but at least I could submit the login credentials to authenticate before the HTTP handler streams the file back.
  2. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 13 Mar 2014 Link to this post

    Hello Bill,

    Currently, File transfer plugin uses http post request which supports basic authentication so you can test with it.
    Since the current plugin version integrated in AppBuilder is not the latest one it might be a good idea to manually import the latest and disable ours from Plugins page. 

    Please, do not hesitate to contact us if you have any further questions or need of assistance.

    Regards,
    Zdravko
    Telerik
     
    Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!
Back to Top