...
Changes in securityContext.xml file
Go to …<ConnectPortalInstallFolder>\resources_config\saml location.
Take backup of securityContext.xml file from the above-mentioned location. (remove the prerequisites step for backup)
- Go to the downloaded Adeptia Connect zip folder and rename the securityContext.xml_Portal file to securityContext.xml.
- Copy the renamed Open securityContext.xml file.
- Replace the existing file with the copied file at the following location: …<ConnectPortalInstallFolder>\resources_config\saml.
Go to Security for the administration UI section and make the following change:
- Add the below property under the security headers tag:
<security:hsts max-age-seconds="31536000"/>
- Add the below property under the security headers tag:
- Go to Secured pages with SAML as entry point section and make the following change:
- Add the below property under the security headers tag:
<security:hsts max-age-seconds="31536000"/>
- Add the below property under the security headers tag:
- Save the file.
Restart the Connect Portal.
Changes in apps.properties file
Go to …<ConnectPortalInstallFolder>\resources_config location.
- Open apps.properties file.
In case you are using
SAML authentication, open the updated securityContext.xml file andQuickBooks and Xero application in Adeptia Connect, do the following
changes:
Uncomment the following property:
<!-- <property name="entityBaseURL" value="http://localhost:8080/adeptia"/> -->
- Update the URL as required. Where localhost is the IP address and port of the Connect Portal. Uncomment the idp.xml property:
- Remove or comment out the existing contextProvider bean
<bean id="contextProvider" class="org.springframework.security.saml.context.SAMLContextProviderImpl"/> - Add the below contextProvider bean
<bean id="contextProvider" class="org.springframework.security.saml.context.SAMLContextProviderLB">
<property name="scheme" value="http"/>
<property name="serverName" value="www.myserver.com"/>
<property name="serverPort" value="8080"/>
<property name="includeServerPortInRequestURL" value="false"/>
<property name="contextPath" value="/adeptia"/>
</bean> - Save the file.
Restart the Connect Portal.
If you are using Adeptia Connect with load balancer, follow these steps:
This table explains the each property of contextProvider bean:
Property Name
Description
It will look like:
<bean id="contextProvider" class="org.springframework.security.saml.context.SAMLContextProviderLB">
<property name="scheme" value="http"/>
<property name="serverName" value="www.myserver.com"/>
<property name="serverPort" value="8080"/>
<property name="includeServerPortInRequestURL" value="false"/>
<property name="contextPath" value="/adeptia"/>
</bean>
If there were any other changes in the old file, you have to do the same changes manually in the replaced securityContext.xml file.
Changes in apps.properties file
- Go to …<ConnectPortalInstallFolder>\resources_config location.
Take backup of apps.properties file from the above-mentioned location. (remove the prerequisites step for backup)
- Go to the downloaded Adeptia Connect zip folder and copy the apps.properties file.
- Replace the existing file with the copied file at the following location: …<ConnectPortalInstallFolder>\resources_config.
- Open apps.properties file.
Explain the new changes.If there were any other changes in the old file, you have to do the same changes manually in the updated apps.properties file.
For older changes, refer to the old apps.properties file that you had saved as a backup.Tip Search for QuickBooks and replace the existing code block with the one given below:
Code Block title QuickBooks quickbooks.appKey= quickbooks.appKeySecret= quickbooks.oauthVersion=2.0 quickbooks.oauth20.accessToken=https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer quickbooks.oauth20.authorize=https://appcenter.intuit.com/connect/oauth2 quickbooks.oauth10.requestToken=https://oauth.intuit.com/oauth/v1/get_request_token quickbooks.oauth10.authorize=https://appcenter.intuit.com/Connect/Begin quickbooks.oauth10.accessToken=https://oauth.intuit.com/oauth/v1/get_access_token quickbooks.openId.provider=https://openid.intuit.com/OpenId/Provider quickbooks.openId.identity=http://specs.openid.net/auth/2.0/identifier_select quickbooks.scope=com.intuit.quickbooks.accounting quickbooks.enableProduction=true
Search for Xero and replace the existing code block with the one given below:
Code Block title Xero xero.appKey= xero.appKeySecret= xero.oauthVersion=2.0 xero.oauth.signatureMethod=RSA-SHA1 xero.oauth20.accessToken=https://identity.xero.com/connect/token xero.oauth20.authorize=https://login.xero.com/identity/connect/authorize xero.oauth10.requestToken=https://api.xero.com/oauth/RequestToken xero.oauth10.accessToken=https://api.xero.com/oauth/AccessToken xero.oauth10.authorize=https://api.xero.com/oauth/Authorize xero.refreshToken=https://api.xero.com/oauth/AccessToken xero.clientAuthentication=true xero.clientKeystore=xeroapps.p12 xero.clientKeystoreType=PKCS12 xero.clientKeystorePassword= xero.clientKeystorePrivateKeyPassword= xero.privateKey= xero.scope=offline_access accounting.transactions accounting.settings accounting.contacts payroll.employees xero.enableProduction=true
- Save the file.
Once the post installation steps are done, start the Connect Portal.
...