Skip to Content

In the previous installments: HCI First Steps Part 3 – Building the iFlow continued… the iFlow was created and partially configured. The outbound message now needs to be delivered but this required a username and password to be supplied to Gmail in order that the email can be created on Google’s servers.

 

In the previous posting the message destination required a user name and password. Normally this process requires creating and deploying a credential artefact, however in the case of Gmail this may require additional steps that will be documented in the case the Google account has two factor authentication enabled.

To enable a password to be used with the EMail adapter will require creating and deploying a Credential Artifact to protect the credentials from being read by anyone except the HCI server. To begin creating artifact goto the “Integration Operations” perspective and right click over the tenant node and select the “Deploy Artifacts” command. 

/wp-content/uploads/2015/09/pic_798291.png

This will give a choice of artefacts to deploy. In this case the “User Credentials” artifact will be created and deployed to the Tenant. These will be the credentials will be used to authenticate with the Google Email servers. By using an artifact like this the username and password can be protected on the server since they will not be made visible to developers and also the credentials may be independently updated.

/wp-content/uploads/2015/09/pic_798291.png

Click the “Next” button and fill in the values.

/wp-content/uploads/2015/09/pic_798291.png

For the credentials the Google username and password are used. If however the Google account has two factor authentication then an application specific password will need to be created. If Two Factor Authentication is not enabled on your Google Account then your Google password should be sufficient. If errors are being reported delivering email then follow the steps below to setup an applications specific password. Application specific passwords are important since they will restrict what the application is allowed to do with your account. In this case the password will be restricted to the email application only, so your other Google properties are not affected.

Log into your Google account and choose “My Account”

/wp-content/uploads/2015/09/pic_798291.png

Select the “Signing in to Google” link and in the “Password and sign-in method” panel, choose “App passwords”

/wp-content/uploads/2015/09/pic_798291.png

From the list of app passwords, choose the “Select app” and “Select device” selects at the bottom.

/wp-content/uploads/2015/09/pic_798291.png

For the “Select App” choose “Mail and in the “Select Device” choose “Other” then use a descriptive name such as “HCI WeatherReport”

/wp-content/uploads/2015/09/pic_798291.png

and click the “Generate” button

 

/wp-content/uploads/2015/09/pic_798291.png

The will show a 16 character password in groups of four. This is the password that will need to be used for the password in the password field. Memorize this password or at least leave it on the screen then swap back to Eclipse and enter it in the password and password repeat fields.

 

Once the password is entered in the fields of the Password artifact, click “Finish” and this will deploy the credentials to the tenant.

 

/wp-content/uploads/2015/09/pic_798291.png

Verify the credentials have been deployed by clicking  on the  “Deployed Artifacts” tab and verify the “HCI WeatherReport Credentials” have been successfully deployed.

You can close the password window on your Google account and logout of Google now. The new application specific password would have been saved.

/wp-content/uploads/2015/09/pic_798291.png

A tip to remember is to click over the deployed artifact and choose the “Copy Artifact Name” command to copy the artifact to the clipboard. This will ensure the correct name is preserved.

 

/wp-content/uploads/2015/09/pic_798291.png

Go back to the channel configuration and enter or paste the name of the newly deployed credential name in the “Credential Name” field.

/wp-content/uploads/2015/09/pic_798291.png

 

This completes the configuration of the email channel.

The start, transformation and end of the integration have been defined, now join them together with the sequence connector, noting that the “Content Modifier” transformation is showing an error since there is nothing yet configured for the transformation.

/wp-content/uploads/2015/09/pic_798291.png

The Integration process is now starting to look completed. In the next installment the content modifier will be configured as well as the email channel and the final iFlow deployed and run.

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Shabarish Vijayakumar

    [CAMEL][IFLOW][ERROR] : Integration flow failed.   [CAMEL][IFLOW][EXCEPTION] : java.util.concurrent.TimeoutException  

    [CAMEL][IFLOW][UNRESOLVED] : Unresolved dependency: (&(keystore=default)(objectClass=com.sap.esb.security.KeyCertificateAccessor))    

    [CAMEL][IFLOW][UNRESOLVED] : Unresolved dependency: (objectClass=com.sap.esb.camel.http.ahc.configurer.AHCConfigFactory)      

    [CAMEL][IFLOW][UNRESOLVED] : Unresolved dependency: (&(endpointType=Mail)(objectClass=com.sap.esb.camel.endpoint.configurator.api.EndpointConfigurator)

    [CAMEL][IFLOW][UNRESOLVED] : Unresolved dependency: (&(keystore=default)(objectClass=com.sap.esb.security.KeyCertificateAccessor))

    I get this error. I don’t have a two factor auth on gmail so gave the user id and password of my gmail account. Any insights into this please?

    (0) 
    1. Shabarish Vijayakumar

      Configured with two factor auth and setup the new password but still get the same error. Is this something to do with authorization of the HCI tenant?

      [CAMEL][IFLOW][ERROR] : Integration flow failed.   [CAMEL][IFLOW][EXCEPTION] : java.util.concurrent.TimeoutException   

      [CAMEL][IFLOW][UNRESOLVED] : Unresolved dependency: (&(keystore=default)(objectClass=com.sap.esb.security.KeyCertificateAccessor))     

      [CAMEL][IFLOW][UNRESOLVED] : Unresolved dependency: (objectClass=com.sap.esb.camel.http.ahc.configurer.AHCConfigFactory)       

      [CAMEL][IFLOW][UNRESOLVED] : Unresolved dependency: (&(endpointType=Mail)(objectClass=com.sap.esb.camel.endpoint.configurator.api.EndpointConfigurator)

      [CAMEL][IFLOW][UNRESOLVED] : Unresolved dependency: (&(keystore=default)(objectClass=com.sap.esb.security.KeyCertificateAccessor))

      (0) 

Leave a Reply