Documentation > CMS Template API Library > FedAuthHosting > ValidateAuthConfig(String,FedPublishingPackage)
ValidateAuthConfig
The same logic used at publish time when publishing the auth.config file on a Fed Auth enabled package. You can use it to test your auth.config's validity before publishing. Its job is to make sure that the properties in the configuration match the properties in the Fed Auth Package configuraiton to prevent tampering.
public System.String ValidateAuthConfig(String,FedPublishingPackage)
Parameters
Name | Description | Type |
---|---|---|
xml | The contents of the file | System.String |
fedPackage | The current FedPublishingPackage. Use FedAuthHosting.GetFedPackage(PublishingPackage) to load | CrownPeak.CMSAPI.FedPublishingPackage |