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

Authentication

3 Answers 66 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Evgeny Vdovin
Top achievements
Rank 1
Evgeny Vdovin asked on 27 Aug 2008, 03:31 PM
Hi Support

We creating small app and using Upload for silverlight to transfer some files into our nas where I need to set up security who can access this folder, so my Question is. What authentication mode is in use? How can I identify user name who is using upload, I know this is more about silverlight app but I wonder if you can help to understand authentication


Sincerely
John Vdovin

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 28 Aug 2008, 06:29 PM
Hello John,

Basically there is no security associated with the RadUpload. It uses a simple server handler for processing the files. The POST requests are submitted directly to the handler, without any validation on the client or on the server.

If you need to pass the user_id, or any other info that is available in the browser you can pass it as a parameters on every upload request and to validate it on the server.

Please let us know if this works for you - we can create a simple example to show you how to pass additional parameters to the upload handler.

Regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
felix
Top achievements
Rank 1
answered on 19 Sep 2008, 08:52 AM
Hello. Just a question regarding authentication. How do I redirect to another page (e.g. login.aspx) if authentication fails? 

Thanks!

Felix 
0
Chris
Top achievements
Rank 1
answered on 21 Sep 2008, 10:08 PM
Hi guys,

John: You should be doing the authentication from within the handler/web service and can use the standard Membership methods from Microsoft in there.  That's what I do.

Felix: In terms of redirecting if they fail authentication, you can just use Response.Redirect, but you should do that in the page that the silverlight app is embedded in and do a check there in the code-behind page (aspx.cs).
Tags
Upload
Asked by
Evgeny Vdovin
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
felix
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Share this question
or