I’m trying to connect to Bungie.net’s Destiny API using the Infinity plugin and I get an error :
Error: Get "https://www.bungie.net/Platform/Destiny2/Manifest/":
oauth2: "unsupported_grant_type"
"Only authorization_code or refresh_token supported."
It means that selected Client Credentials
grant type is not supported by that page.
Does that mean I can’t use this to connect to this API
Yes, you can’t use this particular configuration. But there can be some config, which you may use. Check documentation.
I checked documentention and see no help. Can you explain?
Yes, let me read the doc for you:
Infinity data source supports the following authentication methods:
No authentication
Basic authentication
Bearer token authentication
API key authentication
Digest authentication
OAuth passthrough
OAuth 2.0 client credentials
OAuth 2.0 JWT authentication
Azure authentication
Azure blob storage key
AWS authentication
Your API response claims that it supports only:
Only authorization_code or refresh_token supported
So, no common auth method is supported by your API and Infinitiry datasource => you can’t use Infinity out of the box.
I know it is not working.
All I’m asking is if there is a way I could make it work ?
If you don’t know for sure, no need to reply.
Sorry, I read doc for you. Doc provides set of suppprted auth methods. Your API provides another set of supported auth methods. There is no overlaping auth method, which is supported by Infinity and your API. What is not clear on this statement?
Of course you can make it work, when you implement/code some additional auth method somewhere, so there will be overlapping auth method.