I am newbie to oAuth2 security. I have a question regarding the User Role based Authorization to access REST resources. My internet surfing gave inputs on Authentication part of oAuth2.
Let me provide you the scenario which is bothering me.
I have a REST webservice which has methods to READ (HTTP get),INSERT(HTTP post),UPDATE(HTTP put) and DELETE(HTTP delete) a given resource.
I have two user roles “STANDARD” and “ADMIN”. “STANDARD” user can only invoke READ (HTTP get) and “ADMIN” can access INSERT,UPDATE and DELETE methods. How can I achieve the same?
Which oAuth2 grant flow should be considered?
Can you point me to the solution on User Role based Authorization of REST resources?