I have the same problem,
My moodle installation was trough Softaculous in an CPanel environment. I think follow all the steps for the oauth configuration, but still having the same message:
You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."