-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CryptographicException "The data protection operation was unsuccessful" #427
Comments
That's a limitation in Azure Web Sites that doesn't allow the default session authentication manager encryption. Please see http://www.cloudidentity.com/blog/2013/01/28/running-wif-based-apps-in-windows-azure-web-sites-4/ for a workaround. It should work with AuthServices, but please confirm if it does. |
That did it, as per your link, I added the following the web.config and it worked:
Thanks Anders |
Alternatively you can turn on profile loading on the AppPool in IIS |
@albinsunnanbo Is that possible with Azure web sites? |
I ran into the same error and config publishing my solution in Azure Websites. The addition in the web.config got it working. |
To turn on user profile, do add Site's appSettings |
I just love open source. I just ran into this issue and of course had no memory of this ever happening. Googling for the error message I ended up here, on an issue in my own project, with the solution clearly documented. Thanks @steveSCC for taking the time to report back and providing the copy-paste-ready web.config additions. |
This worked for me. easy-peasy! |
I'm trying to get the sample MVC application deployed to Azure and using Okta as the IDP, with a view of doing the same thing for our custom applications, but am receiving the CryptographicException "The data protection operation was unsuccessful".
When this occurs the URL in the browser is https://mysite.azurewebsites.net/AuthServices/Acs
I am using Kentor.AuthServices.Mvc nuget package, v0.17.0.
Below is the kentor section of my web.config. I don't have an identity server so removed all the federation config..
And here is the stacktrace
The text was updated successfully, but these errors were encountered: