ComponentSpace

Forums



Load SAMLConfiguration from somewhere other than root


Load SAMLConfiguration from somewhere other than root

Author
Message
Paladin
Paladin
New Member
New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)

Group: Forum Members
Posts: 4, Visits: 18
I want to use the SAMLConfiguration object instead of having to configure everything myself, but I'd like to put the saml.config file somewhere other than the root.

Can I do that?
ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)

Group: Administrators
Posts: 2.4K, Visits: 6.6K
Yes. By default saml.config is loaded from the application's root directory. However, saml.config may reside in any directory you wish, as long as the appropriate file permissions are set so that the file can be read.
To load saml.config from a different directory, you need to call SAMLConfiguration.Load prior to any other SAML API calls. For example:

SAMLConfiguration.Load(@"c:\config\saml.config")

Regards
ComponentSpace Development
Manikandan
Manikandan
New Member
New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)New Member (9 reputation)

Group: Awaiting Activation
Posts: 9, Visits: 27
Hi,

Looks Currently SAMLConfiguration.Load(@"c:\config\saml.config")  is not available what is the alternative method  so that i can load  saml.config file in session_start in (Asp.net Global.asax) 

Thanks,
Manikandan


ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)ComponentSpace Development (3.4K reputation)

Group: Administrators
Posts: 2.4K, Visits: 6.6K
Hi Manikandan
We refactored the SAMLConfiguration class and you'll find there's now a SAMLController class and SAMConfigurationFile class.
If the saml.config file is in the application's root folder, this is loaded automatically.
If you prefer a different location, you can specify this with the SAMLConfigFile app setting in web.config and it will be loaded automatically.
For example:
<appSettings>
  <!-- The relative or absolute path of the SAML configuration file. It defaults to saml.config. -->
  <add key="SAMLConfigFile" value="c:\config\saml.config"/>
</appSettings>
The file is loaded automatically immediately prior to the first SSO.
If required, you can force the file loading by calling SAMLController.Initialize() in application start-up.




Regards
ComponentSpace Development
GO


Similar Topics


Execution: 0.000. 3 queries. Compression Enabled.
Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....









Forums, Documentation & Knowledge Base - ComponentSpace


Search