Our second challenge arises when we employ the Authorization Code to access the Sample Resource Server, resulting in an “Invalid Scope
” complaint.
This occurs due to a discrepancy between the scope assigned to the client registered on the Authorization Server and the scope defined for the client itself. The issue emerged when I introduced a new privilege/scope – api.read
– exclusively on the client side. However, this new scope wasn’t incorporated when registering the client on the Authorization Server. To resolve this, I included the scope, cleared the existing database entries, and rebooted the application, triggering a database repopulation.
Subsequently, this approach successfully resolved the problem.