We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question

PierreJosselin's profile - activity

2020-07-21 16:28:20 +0200 received badge  Famous Question (source)
2020-06-01 10:35:04 +0200 received badge  Notable Question (source)
2020-05-30 09:10:12 +0200 received badge  Enthusiast
2020-05-29 08:51:04 +0200 received badge  Popular Question (source)
2020-05-26 08:56:09 +0200 asked a question Access control & Orion context broker

I deployed a platform with the following modules:

  • Context Broker (Orion)
  • Fiware IDM (Keyrock)
  • PEP Proxy (Wilma)
  • ...

So any authenticated user can access the context broker, it's level 1.

image:level 1

Now I need that a user (or user group) must be authorized to access some entities.

Considering this example entity:
Service: Test
Service-Path: /Test/Demo
Entity-Id: test-entity
Type: Device

This entity should be accessible only by users Bob and Alice (belonging to the testers group).
If I understood correctly, this is level 2.

image:level 2

The problem is that I have been browsing the web for many hours without finding anything about it (I may not have used the right keywords).
The module to use for this is probably AuthZForce, but that I don't understand how to use it with the context broker, I can't find any concrete example.

Could you confirm for me whether I should use AuthZForce to accomplish this, and give me some examples on how to configure these rules for accessing the context broker?

Thank you

2018-04-16 11:55:46 +0200 received badge  Famous Question (source)
2017-12-11 12:50:30 +0200 received badge  Notable Question (source)
2017-10-11 18:08:44 +0200 received badge  Popular Question (source)
2017-09-08 08:39:02 +0200 asked a question Cygnus Handler Not Found

I have done a clean installation of Fiware (Orion ContextBroker, MongoDB, Java JDK & Cygnus) on a CentOS 6.9 machine. But i got a problem with Cygnus, i cant get him start. When i try anything, event the Quick Start Guide Test i got the following error :

java.lang.ClassNotFoundException: com.telefonica.iot.cygnus.handlers.OrionRestHandler

Do you know what the problem is? Thanks !

Cygnus log file :

time=2017-08-31T14:17:49.917Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp= | op=main | msg=com.telefonica.iot.cygnus.nodes.CygnusApplication[166] : Starting Cygnus, version 1.7.1.UNKNOWN
time=2017-08-31T14:17:50.070Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=main | msg=com.telefonica.iot.cygnus.nodes.CygnusApplication[289] : Waiting for valid Flume components references...
time=2017-08-31T14:17:50.071Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=start | msg=org.apache.flume.node.PollingPropertiesFileConfigurationProvider[61] : Configuration provider starting
time=2017-08-31T14:17:50.074Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=run | msg=org.apache.flume.node.PollingPropertiesFileConfigurationProvider$FileWatcherRunnable[133] : Reloading configuration file:/usr/cygnus/conf/agent_test.conf
time=2017-08-31T14:17:50.083Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=addProperty | msg=org.apache.flume.conf.FlumeConfiguration$AgentConfiguration[1016] : Processing:test-sink
time=2017-08-31T14:17:50.083Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=addProperty | msg=org.apache.flume.conf.FlumeConfiguration$AgentConfiguration[1016] : Processing:test_sink
time=2017-08-31T14:17:50.083Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=addProperty | msg=org.apache.flume.conf.FlumeConfiguration$AgentConfiguration[1016] : Processing:test-sink
time=2017-08-31T14:17:50.084Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=addProperty | msg=org.apache.flume.conf.FlumeConfiguration$AgentConfiguration[1016] : Processing:test-sink
time=2017-08-31T14:17:50.084Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=addProperty | msg=org.apache.flume.conf.FlumeConfiguration$AgentConfiguration[930] : Added sinks: test-sink Agent: cygnusagent
time=2017-08-31T14:17:50.098Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=validateConfiguration | msg=org.apache.flume.conf.FlumeConfiguration[140] : Post-validation flume configuration contains configuration for agents: [cygnusagent]
time=2017-08-31T14:17:50.098Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=loadChannels | msg=org.apache.flume.node.AbstractConfigurationProvider[150] : Creating channels
time=2017-08-31T14:17:50.108Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=create | msg=org.apache.flume.channel.DefaultChannelFactory[40] : Creating instance of channel test-channel type memory
time=2017-08-31T14:17:50.114Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=loadChannels | msg=org.apache.flume.node.AbstractConfigurationProvider[205] : Created channel test-channel
time=2017-08-31T14:17:50.115Z | lvl=INFO | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=create | msg=org.apache.flume.source.DefaultSourceFactory[39] : Creating instance of source http-source, type org.apache.flume.source.http.HTTPSource
time=2017-08-31T14:17:50.120Z | lvl=ERROR | corr= | trans= | srv= | subsrv= | comp=cygnusagent | op=configure | msg=org.apache.flume.source.http.HTTPSource[113] : Error while configuring HTTPSource. Exception follows.
java.lang.ClassNotFoundException: com.telefonica.iot.cygnus.handlers.OrionRestHandler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:359)
    at java ...
(more)