Wednesday, 15 June 2011

asp.net - Dynamically set the WSFederationAuthenticationModule.Issuer and Realm property -


I want to avoid being node in web.config and therefore set the dynamic issuer and Realm in the OnAuthenticateRequest event. But error "system.argumentexception: id0006: Input String parameter is either empty or empty. Parameter Name: Issuer"

Before getting the OnAuthenticateRequest event, I get this error I do not understand what I have here is?

AFAIK, you must provide a configuration before you start authentication, it can be done in web.config You submit the event to federatedAuthentication.FederationConfigurationCreated + = FederatedAuthenticationOnFederationConfigurationCreated;

You can start to provide your own configuration.


No comments:

Post a Comment