utilsService.getServiceWithId(domainInterface.getName(),domainEndpoints.get(0).getInstanceId());
an exception is thrown stating that the service needs authentication:
Caused by: org.openengsb.core.api.security.service.AccessDeniedException: no authentication was found in context
at org.openengsb.core.services.internal.security.SecurityInterceptor.invoke(SecurityInterceptor.java:54)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy79.getInstanceId(Unknown Source)
I am currently using the line <reference id="authenticationContext" interface="org.openengsb.core.api.security.AuthenticationContext" /> in the blueprint file. What else do I need to add?
The service can be called from any time so it does not belong to a Web interface and is executed detached from user interactions.
Best regards,
Andreas
You received this message because you are subscribed to a topic in the Google Groups "OpenEngSB user group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openengsb-user/qkGWXYt-bbA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openengsb-use...@googlegroups.com.
Hi Andreas,
yes, try it with a login before. Even though your component is not
related to a specific user, the component has to perform some kind of
authentication. Otherwise the security mechanisms would have no sense,
right? : )
TBH I'm not that expert for the security in the OpenEngSB, but according
to the error message you got, the authentication should solve your problem.
Kind regards,
Felix
Am 2013-08-31 17:44, schrieb Andreas Gr�nwald:
> Hi,
> no, not at all. I already considered it. But actually the component is
> running detached from user actions so the correct way would be to
> authenticate the service and not a particular user, correct?
>
> I found something in the documentation (
> http://openengsb.org/manual/openengsb-manual/v2.0.2/html-single/openengsb-manual.html#d0e459)
> but as the documentation is not very up to date I was not sure how accurate
> this is.
>
> Should I try with the login method?
>
> Thank you very much meanwhile?
> Best, Andreas
>
>
> On Sat, Aug 31, 2013 at 12:49 PM, Michael Petritsch <
> michael....@gmail.com> wrote:
>
>> Hi,
>>
>> have you called the method authenticationContext.login(username, password)?
>>
>> br
>>
>> On Sat, Aug 31, 2013 at 11:33 AM, Andreas Gr�nwald <a.gr...@gmail.com>