SSRS 2016使用基于表单的身份验证嵌入MVC - 最佳实践?
全部,
我们在Azure中运行的MVC应用程序使用自定义用户存储库,基本上是基于表单的身份验证。 我们真的希望利用新更新的SSRS 2016的强大功能,并将报告和移动报告紧密集成到我们的应用程序
。 使用嵌入查询字符串参数的新url访问在通过AD连接的计算机上进行测试时效果很好,但使用SSRS的自定义用户存储库的最佳方法是什么。
We have a MVC application running in Azure that uses a custom user repository, basically, forms based auth. We really wanted to take advantage of the power of the new updated SSRS 2016 and tightly integrate reports and mobile reports into our application. The new url access with the embed query string parameter works great when testing on a machine that is connected via AD, but what is the best way to use a custom user repository with SSRS.
任何白皮书,概念证明等等? 从初步阅读开始,如果SSRS配置了自定义身份验证(当然是自定义提供程序),则默认操作将提示输入信用卡。 由于用户已经登录我们的应用程序
,我们不需要提示,只需要无缝执行报告。
Any whitepapers, proof of concepts, etc out there? From some initial reading, it appears if SSRS is configured with a custom auth(with custom provider written, of course) that the default action will be to prompt for creds. Since the user has already logged into our app, we don't want a prompt, just a seamless execution of the report.
思考?
您好Coneslager,
Hi Coneslager,
在您的应用程序中,您需要进行哪些身份验证使用?
In your application, which authentication are you using?
通常,如果在MVC应用程序中使用Window身份验证,则无需将任何身份验证传递给报表服务器。如果您在应用程序中使用自定义身份验证,则需要通过以下身份验证。
Generally, you do not need to pass any authentication to report server if you are using Window authentication in you MVC application. If you are use a custom authentication in application, you need to pass the authentication like below.
rptViewer.ServerReport.ReportServerCredentials = new ReportServerCredentials("UserName", "Password", "domainname");
问候,