This is a migrated thread and some comments may be shown as answers.

External Urls, FileTransfer Plugin, and Secure File Opening

1 Answer 99 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bill
Top achievements
Rank 1
Bill asked on 11 Mar 2014, 09:40 PM
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.

1 Answer, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 13 Mar 2014, 11:00 AM
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!
Tags
General Discussion
Asked by
Bill
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Share this question
or