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

using ServiceStack's custom Authentication with Telerik.Reporting.Services.ServiceStack

1 Answer 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
matthew
Top achievements
Rank 1
matthew asked on 05 May 2014, 08:51 PM
I'm trying to use ServiceStack's IAuthProvider interface to implement custom authentication for my reporting service. The problem is since the end point implementations are inside the Telerik dll, I can't decorate them with the [Authenticate] attribute required to enforce authentication. 

I'd rather not have my reporting server wide open for anyone who has HTTP access to the server. 

Anyone have any creative solutions to this problem?

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 08 May 2014, 01:54 PM
Hello Matthew,

Currently there is no option to add the attributes to the required methods. Please try using other authentication approach e.g. basic authentication and send authentication keys into the service's requests headers:
add this script in the view:
---------------------------
$.ajaxPrefilter(function (options, originalOptions, jqXHR) {
                jqXHR.setRequestHeader("header", "value");
            });

We will consider providing option to add authentication headers to methods in future. For the time being, please use the above suggestion.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
matthew
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or