You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@syncope.apache.org by PeeDub <pf...@greenarrowlabs.com> on 2018/03/01 20:16:06 UTC

Authentication exceptions in client

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/

Re: Authentication exceptions in client

Posted by ilgrosso <il...@apache.org>.
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

Posted by PeeDub <pf...@greenarrowlabs.com>.
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/

Re: Authentication exceptions in client

Posted by ilgrosso <il...@apache.org>.
PeeDub wrote
> 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?

I guess you hit

https://issues.apache.org/jira/browse/SYNCOPE-1263

Fix will be delivered with Syncope 2.0.8.

Regards.

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