Re: Authentication exceptions in client

2018-03-02 Thread ilgrosso
PeeDub wrote
> In a related question. I created a user and gave that user a basic ADMIN
> role
> on the "/" realm with only the "USER_CREATE" entitlement, and I get a
> ForbiddenException (javax.ws.rs.ForbiddenException: Access is denied) for
> that user. Should this user not be able to create a user via the client?

Could you please provide some more details about what you are attempting to
do, and the complete stacktrace on server side (you can find it in the core
logs)?

Regards.

--
Sent from: http://syncope-user.1051894.n5.nabble.com/


Re: Authentication exceptions in client

2018-03-01 Thread PeeDub
In a related question. I created a user and gave that user a basic ADMIN role
on the "/" realm with only the "USER_CREATE" entitlement, and I get a
ForbiddenException (javax.ws.rs.ForbiddenException: Access is denied) for
that user. Should this user not be able to create a user via the client?

-
Paul Fullbright
--
Sent from: http://syncope-user.1051894.n5.nabble.com/


Authentication exceptions in client

2018-03-01 Thread PeeDub
Hello,

I tried creating a user by
- creating a client with an incorrect token
  SyncopeClient client = getSyncopeClientFactory().create("gobbledygook");

- retrieving the service
UserService service = client.getService(UserService.class);

- invoking the call
Response response = service.create(user);

But this resulted in a web service exception
(javax.xml.ws.WebServiceException: Remote exception with status code:
INTERNAL_SERVER_ERROR) at this point, not any kind of authentication
exception. Should I be doing some sort of authentication before sending the
call at this point? Otherwise what sort of authentication error should I be
receiving?

-
Paul Fullbright
--
Sent from: http://syncope-user.1051894.n5.nabble.com/