After doing the OAuth dance in tonr/sparklr with "marissa", I try to access the admin endpoints (using Chrome/Simple REST Client) by passing her access token, like so:
and I get:Code:GET http://localhost:8080/sparklr2/oauth/users/marissa/tokens Authorization: Bearer (token)
but if I POST, I get the desired response.Code:403 Forbidden {"error":"access_denied","error_description":"Access is denied"}
But the config states:Code:200 OK [{"access_token":"(access-token)","token_type":"bearer","refresh_token":"(refresh-token)","expires_in":26603,"scope":"read","client_id":"client1"}]
so how can this be?Code:<intercept-url pattern="/oauth/users/.*" access="#oauth2.clientHasRole('ROLE_CLIENT') and (hasRole('ROLE_USER') or #oauth2.isClient()) and #oauth2.hasScope('read')" method="GET" />


Reply With Quote
