locked
Passing Secure configuration in Plugin RRS feed

  • Question

  • I need to Understand how to pass secure configuration data in Plugin.SDK says that the PluginDeveloper tool only supports the unsecure string through its CustomConfiguration attribute of the Step tag in the register.xml input file.

    does that meean that we cannot use the secure configuration data while using the registration tool? Could any throw light on this please?

     

    Thursday, April 1, 2010 11:39 AM

Answers

  • Correct.  You need to use the PluginRegistration.exe tool: http://code.msdn.microsoft.com/crmplugin/Release/ProjectReleases.aspx?ReleaseId=2010

    Then connect to your server and org.  Find your plugin and double-click the plugin step.  You will get a form popup and in the bottom box on the right you can enter the Secure Configuration.

    In your plugin make a constructor something like this to retrieve the unsecure or secure string:

            private string _key;
            public EncryptorPlugin(string unsecure, string secure)
            {
                if (!String.IsNullOrEmpty(unsecure))
                {
                    _key = unsecure;
                }
                if (!String.IsNullOrEmpty(secure))
                {
                    _key = secure;
                }
            }

    They are basically the same except the secure string is a little harder to find and encrypted in the database.

    Thursday, April 1, 2010 2:05 PM

All replies

  • Correct.  You need to use the PluginRegistration.exe tool: http://code.msdn.microsoft.com/crmplugin/Release/ProjectReleases.aspx?ReleaseId=2010

    Then connect to your server and org.  Find your plugin and double-click the plugin step.  You will get a form popup and in the bottom box on the right you can enter the Secure Configuration.

    In your plugin make a constructor something like this to retrieve the unsecure or secure string:

            private string _key;
            public EncryptorPlugin(string unsecure, string secure)
            {
                if (!String.IsNullOrEmpty(unsecure))
                {
                    _key = unsecure;
                }
                if (!String.IsNullOrEmpty(secure))
                {
                    _key = secure;
                }
            }

    They are basically the same except the secure string is a little harder to find and encrypted in the database.

    Thursday, April 1, 2010 2:05 PM
  • Thanks ! for the reply
    Thursday, April 15, 2010 9:11 AM