cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Restrict OAUTH to specific webservice

Former Member
0 Kudos
224

Hi All,

Is there a way i can use OAUTH webservice to have access of limited rest webservice resource.

i need only some of teh resources to be used by OAUTH client. other webservices cannot be used by that oauth client

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hybris provides 2 filters ie. HybrisOauth2UserFilter and UserMatchingFilter which can be customized to check the resource path and write custom logic to suit your business rules.

Former Member
0 Kudos

I did it different way. removed role ROLE_TRUSTED_CLIENT for oauth client. if any service have @security annotation, it will deny