- Joined
- Dec 14, 2021
- Messages
- 3
- Reaction score
- 0
Hello everyone,
We are working on integrating vTiger Community Edition with 3CX (latest version) and need persistent authentication for contact lookup. Since OAuth is only available in vTiger Cloud, we have implemented a custom refresh token mechanism to authenticate 3CX without OAuth.
Our implementation is based on the discussion in this 3CX forum post, where the approach of using refreshToken and sessionName for authentication was suggested.
Implementation Details:
New API: Created refreshToken.php to accept a refresh token and generate a new sessionName.
Login Modification: Updated login.php to store refreshToken and access_token in the vtiger_api_tokens table after login.
3CX CRM Template Update: Configured 3CX to use refreshToken instead of OAuth.
Issue:
Calling refreshToken.php returns “AUTHENTICATION_REQUIRED”.
3CX fails to look up contacts, showing “INVALID_SESSIONID”.
Database check confirms that the refreshToken is stored correctly, but vTiger does not recognize it when used.
Expected Outcome:
refreshToken.php should generate a valid sessionName for API requests.
3CX should be able to fetch contacts using the refreshed session without requiring OAuth.
Has anyone encountered a similar issue or have any insights on why vTiger is not recognizing the refresh token? Any suggestions would be greatly appreciated!
Thanks in advance!
We are working on integrating vTiger Community Edition with 3CX (latest version) and need persistent authentication for contact lookup. Since OAuth is only available in vTiger Cloud, we have implemented a custom refresh token mechanism to authenticate 3CX without OAuth.
Our implementation is based on the discussion in this 3CX forum post, where the approach of using refreshToken and sessionName for authentication was suggested.
Implementation Details:
Issue:
Expected Outcome:
refreshToken.php should generate a valid sessionName for API requests.
3CX should be able to fetch contacts using the refreshed session without requiring OAuth.
Has anyone encountered a similar issue or have any insights on why vTiger is not recognizing the refresh token? Any suggestions would be greatly appreciated!
Thanks in advance!