Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12443

camel-salesforce - Ability to use 'key' directly instead of pointing resource for generateJwtAssertion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Works for Me
    • 2.21.0
    • None
    • camel-salesforce
    • None
    • Unknown

    Description

      Hello,

      Could you extend the way of using JWT OAUTH2.0 authorisation for Salesforce component? For the current moment it uses resource uri (path to file, classpath, URL), but we want to use key directly (from String variable):

      String generateJwtAssertion() {

      ...

          PrivateKey key = (PrivateKey) keystore.getKey(alias, keyStoreParameters.getPassword().toCharArray());

      ....

      We would like to have possibility to set the key directly from String variable, so there will be new way how to configure JWT for SF:

      String keyValue="This is some key content";

      SalesforceLoginConfig loginConfig = new SalesforceLoginConfig();

      loginConfig.setKey(keyValue);       <-------------- new option

       

      Thanks,

      Andrey 

       

       

      Attachments

        Activity

          People

            zregvart Zoran Regvart
            atyurin Andrey Tyurin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: