CSLA Silverlight ASP.NET Forms Authentication and needing cookie pass-through to client
We have a CSLA Silverlight application with ASP.NET Forms Authentication (logon page and all of app is in Silverlight). Authentication (and authorisation) works.
We have extended our application to include some reports, using SSRS 2008 R2 with custom ASP.NET Forms Authentication. These reports work via an asp.net logon test page.
We now need to couple these two together, which we believe we can achieve by using an ASP.NET Forms authentication cookie. We have made changes to the web.config files, but a cookie is never present on the Silverlight side and so we cannot authenticate the logged in user for reports.
Has anyone out there managed to do something similar and get a cookie in the Silverlight side? Any help would be much appreciated.
We have tried several variations in web.config files, currently the authentication section in both the application WCF web.config and application web web.config are the same as follows:
<machineKey validationKey=" ... "
decryptionKey=" ... "
<!-- Deny anonymous user-->
<deny users ="?" />
<allow users = "*" />
Can anyone advise please?
Just to note I am using SL 3.5, CSLA 3.7, SSRS 2008 R2, IIS7
Are you creating the Forms cookie in your SL app? I think you need to get your SL app to write the Forms Authentication cookie. Then you should be good to go.
It's an older post, relating to Silverlight 2, but it should still work:
Thanks Scott this was exactly what I needed :)
Copyright (c) Marimer LLC