Documentation > CMS Template API Library > FedAuthHosting

CrownPeak.CMSAPI.FedAuthHosting

Utlities for loading and saving Configuration

NameDescriptionType
GetFedAuthSites(Int32)

Finds the deploy record that applies to the given folder and returns all the packages that have fed auth enabled

Method
GetFedPackage(PublishingPackage)

Pass the publishingpackage from the current context and get a FedPublishingPackage which has additional data.

Method
LoadAuthConfigFromXml(String)

Takes an Xml string and returns a AuthConfiguration object.

Method
LoadProviderConfigFromXml(String)

Takes an Xml string and returns a ProviderConfiguration object.

Method
LoadUserConfigFromXml(String)

Takes an Xml string and returns a UserConfiguration object. If the string is null or empty, the object will contain an empty user list Use the UserConfiguration to Add, remove or modify users that can access the website that is using this configuration.

Method
SaveAuthConfigToXml(AuthConfiguration)

Takes a AuthConfiguration object and returns an XML representation that is compatible with the Fed Auth Hosting module The token $HOSTNAME$ will be replaced by the actual package hostname if it is available

Method
SaveProviderConfigToXml(ProviderConfiguration)

Takes a ProviderConfiguration object and returns an XML representation that is compatible with the Fed Auth Hosting module The token $HOSTNAME$ will be replaced by the actual package hostname if it is available

Method
SaveUserConfigToXml(UserConfiguration)

Takes a UserConfiguration object and returns an XML representation that is compatible with the Fed Auth Hosting module

Method
ValidateAuthConfig(String,FedPublishingPackage)

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.

Method
ValidateWebConfig(String,FedPublishingPackage,Boolean)

This is the same logic used on web.config files at publish time when publishing to packages where Fed Auth is enabled. You can use it to test your web.config's validity before publishing.

Method

Connect with CrownPeak