I am now studying about the topic, and as far as I understand OAuth 2.0 is supposed to be a protocol for users authorization in a web server. When it comes to authentication its pretty straight forward - the client sends a request to the identity provider, receives a token that contains additional information (JWT for example), he then sends that token to the app server, the app server validates the token with the identity provider. All good until here.
My problem is authorization - knowing which permissions that user possesses in the app server. As far as I understand, the "scope" part of the request refers to things that the user allows the app server to do on his entity in the identity provider, so it is authorization but it authorizes only the app server.
Does the protocol contains any way for the app server to authorize the client, or it assumes that data like the roles and scopes of each user would be managed by the app server? I guess such data could be sent by the identity provider on the token, but then how are the permissions of each user managed with the identity provider? Is it part of the protocol? If not, why is it called "authorization protocol"?