Open vizvtwow opened 8 years ago
It looks like IdentityServer is trying to pull in an encryption certificate, but you don't have one. If you are storing wsfed configuration in a database, make sure the encryption certificate is set to null, not just whitespace.
@vizvtwow Should this issue be closed? Can you please let us know what are the steps performed in case the issue has been fixed and if not what all you have tried?
I think if this was an issue on our side, it would have been solved by https://github.com/IdentityServer/IdentityServer3.WsFederation.EntityFramework/pull/1
@scottbrady91 Thanks a lot. Its working for me using link the link you provided.
Hello,
i've configured the IdentityServer3 (2.5.4) with IdentityServer3.WsFederation plugin (2.6.0) as trusted identity provider for SharePoint 2013. Both applications using SSL are running on different machines (Windows Server 2012) within test environment. The following exception occured in the function CreateSecurityToken in class SignInResponseGenerator. The authentication process at ADFS is working without any problems.
First i've supposed some permission issues with the signing certificate and private key access on Windows Server 2012. But it doesn't seems so. The identity of the default application pool of the identity server within the IIS has been set to 'Network Service'. The details of the exception message in combination with the global member are not very helpful.
Exception
I've attached the important configuration parts and log file.
Log
WsFederationAuthenticationOptions
RelyingParty
PowerShell script to append trusted provider
SharePoint External Authentication Provider enabled
Properties of the Certificate for token signing
Maybe there is someone with experience of adding IdentityServer3 as trusted provider to SharePoint 2013. A new sample in the repository would also be helpful. Most entries on GitHub and Stackoverflow are deprecated or affect IdentityServer2.
An example for the creation of the signing certificate with New-SelfSignedCertificate (PowerShell) would also be nice. The only example i found was made for MakeCert. Microsoft says: "MakeCert is deprecated. To create self-signed certificates, use the Powershell Cmdlet New-SelfSignedCertificate".
Thanks for the help in advance.