I am using BlackBerry Spark Communications SDK to integrate chat system in my web app. It requires OAuth 2.0 for Identity Management. I am using bshaffer/oauth2-server-php library for generating OAuth 2.0 tokens. When initiating the SDK I am getting "Invalid Token Audience" error when BBM endpoint https://profile.sandbox.bbmenterprise.com/domains/8874cfde-5524-4df1-9609-360e1a8ba0f2/token?userId=-VvarBIAtPdQo61zAL4Ygzng-KKPmap3VDVoaQ6eQxA&requireMinToken=true
is called.
SDK Reference: https://developer.blackberry.com/files/bbm-enterprise/documents/guide/html/identityManagement.html
Thanks in advance