Hello, after some time I’ve been working on a Patreon oauth client for HumHub & Yii2 users and ran into an access_denied error, maybe I could get some help with understanding or even fixing this issue.
Sure thing! can you provide more context?
Patreon Platform Team
Hello Spencer, at this time I’ve been trying to create a useful integration with the Oauth of Patreon (Seen here) but once I fix one thing another thing breaks and gives an error as seen on our GitHub repo link above which is an
access_denied, I don’t believe I missed anything but if I did please do guide me into the right place.
Unfortunately I can’t address your code directly, but if you have a specific question I’d be happy to answer it.
On first blush it looks like you’re using a third party library to handle oauth, but I don’t see any of the code that actually handles the Oauth in here outside of the oauth link. Have you followed all of the instructions here https://docs.patreon.com/#oauth?
yii\authclient\OAuth2 is, is an abstract class that serves as a client for the OAuth 2 flow, but from the looks of it it’s an issue with the following;
401 Unauthorized Authentication failed (bad API key, invalid OAuth token, incorrect scopes, etc.)
This leads me to believe that either;
- Not providing default scopes is the issue or
- The generated API key or Oauth token aren’t working the way they should, or
- All the above.
I’ll continue looking into this but I’m sure that the code should work the way it’s intended to work.