2
Most read
3
Most read
Universidade Federal de Campina Grande (UFCG)
Laboratório de Sistemas Distribuídos (LSD)
Dalton Cézane Gomes Valadares
FIWARE - How to begin with Orion Context Broker
1. Download the Orion VirtualBox image: http://bit.ly/fiware-orion024-vbox
2. Once you have the Orion VirtualBox image, configure it on your VirtualBox and run.
1GB RAM and 8GB HD storage were enough.
3. For Network Settings, you can choose NAT. You have to setup the following “Port
forwarding” rule in VirtualBox:
a. Protocol - TCP
b. HOST IP - Your host IP
c. HOST Port - 1026 (default)
d. Guest IP - Your VM IP
e. Guest Port - 1026
4. Now, you have a CentOS with Orion installed. Login and user for CentOS are both:
fiware.
5. Test if you can ping your host machine ip and if you have access to Internet.
6. Update the Orion version with the command: sudo yum install contextBroker
7. To test, you can use the following command from your host machine: curl
http:your_host_ip:1026/version (you will see the version of Orion)
FIWARE - IdM Keyrock
1. The easier way to IdM Keyrock running is using docker. With docker installed in your
machine, do: sudo docker run -d --name idm -p 8000:8000 -p 5000:5000 -t
fiware/idm
2. This command will configure a container with IdM Keyrock on your machine, with
user and password set to ‘idm’, Horizon mapped to port 8000 and Keystone mapped
to port 5000.
3. To start the container, do: sudo docker start idm
4. To access the container, through bash: sudo docker exec -it idm bash
5. To test, you can use the following command from your host machine: curl
http://your_host_ip:5000 or http://your_host_ip:8000 (you must see the json message
about openstack keystone versions or the html code related to horizon start page)
6. Access horizon at localhost:8000 and click on Applications ---> Register.
7. Fill all the inputs. The application url is the url Keyrock accepts OAuth requests. The
callback url is the url that the browser redirects to, after the OAuth flow is finished.
FIWARE - PEP Proxy Wilma
1. With nodejs and npm installed in your machine, clone this repository: git clone
https://github.com/ging/fiware-pep-proxy.git
2. Enter in the fiware-pep-proxy folder and run: npm install
3. After the installation process, copy the content of config.template to config.js file
(create it). Configure the params config.app_host and config.app_port with your host
address and port.
4. Run the server: nodejs server
FIWARE - How to integrate Orion, Wilma and Keyrock
1. Once you have Orion, Wilma and Keyrock running and tested, let’s configure the
integration between all of them
2. With Keyrock running (http://localhost:8000), access your application configured
3. Get the PEP Proxy username and password
4. Edit your Wilma PEP Proxy config.js file with these information:
config.account_host = 'http://idm_ip:8000'; //ip from IdM Keyrock instance
config.keystone_host = 'idm_ip'; //ip from IdM Keyrock instance
config.keystone_port = 5000;
config.app_host = 'orion_ip'; //ip from Orion instance
config.app_port = '1026';
// Use true if the app server listens in https
config.app_ssl = false;
// Credentials obtained when registering PEP Proxy in Account Portal
config.username = 'pep_proxy_3e30a1e810284995b35fe61abc8e7044';
config.password = '4c87c6db2a9a43a4a9d9e1e95759df62';
5. Now, you have to request a valid token in the IdM Keyrock. To get this, do a post
request with the following information:
POST to "http://idm_ip:8000/oauth2/token"
Payload:
grant_type=password&username=YOUR_USERNAME&password=YOUR_PASSWORD&cli
ent_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET
In the payload, change all “YOUR_” params to your own information: username and
password from a valid registered user in the Keyrock and client_id and client_secret from a
valid registered application in the Keyrock.
Headers:
'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': 'Basic AUTH_HEADER'
Where AUTH_HEADER must be changed to a Base64 encoded of this information:
“client_id :client_secret” - something like base64(client_id + “:” + client_secret)
6. After get a valid token from IdM Keyrock, you can make some request for Orion, with
the following information:
GET or POST to http://idm_ip/v2/entities (note the idm_ip because we have the Wilma PEP
Proxy running on the IdM container and protecting our Orion instance. So, all the requests to
Orion will pass by Wilma to be authenticated and authorized)
Headers:
'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': ‘your valid IdM
token obtained in the last step’
Payload:
According to Orion operations. See the NGSI v2 to learn about the JSON formats.

More Related Content

PPTX
ZERO TRUST ARCHITECTURE - DIGITAL TRUST FRAMEWORK
PPTX
PDF
Keyrock and API Umbrella for Data Spaces
PPTX
Rest API Security - A quick understanding of Rest API Security
PPTX
Building secure applications with keycloak
PDF
Kubernetes Secrets Management on Production with Demo
PPTX
Zero trust deck 2020
PPTX
Discovering the 2 in Alfresco Search Services 2.0
ZERO TRUST ARCHITECTURE - DIGITAL TRUST FRAMEWORK
Keyrock and API Umbrella for Data Spaces
Rest API Security - A quick understanding of Rest API Security
Building secure applications with keycloak
Kubernetes Secrets Management on Production with Demo
Zero trust deck 2020
Discovering the 2 in Alfresco Search Services 2.0

What's hot (20)

PDF
Introduction to Vault
PPSX
Zero-Trust SASE DevSecOps
PDF
Hacking Adobe Experience Manager sites
PPSX
Elastic-Engineering
PDF
Creating a Context-Aware solution, Complex Event Processing with FIWARE Perseo
PPTX
REST Service Authetication with TLS & JWTs
PDF
Istio : Service Mesh
PDF
OAuth 2.0
PPTX
Rest API Security
PPTX
Secure your app with keycloak
PDF
Demystifying Service Mesh
PPTX
Radware - WAF (Web Application Firewall)
PPSX
Containers Docker Kind Kubernetes Istio
PPTX
ARCHITECTURE MICROSERVICE : TOUR D’HORIZON DU CONCEPT ET BONNES PRATIQUES
PPTX
MuleSoft Architecture Presentation
ODP
Kong API Gateway
ODP
Salesforce Flawless Packaging And Deployment
PPT
Identity Access Management (IAM)
PPTX
IdP, SAML, OAuth
PDF
FIWARE Identity Management and Access Control
Introduction to Vault
Zero-Trust SASE DevSecOps
Hacking Adobe Experience Manager sites
Elastic-Engineering
Creating a Context-Aware solution, Complex Event Processing with FIWARE Perseo
REST Service Authetication with TLS & JWTs
Istio : Service Mesh
OAuth 2.0
Rest API Security
Secure your app with keycloak
Demystifying Service Mesh
Radware - WAF (Web Application Firewall)
Containers Docker Kind Kubernetes Istio
ARCHITECTURE MICROSERVICE : TOUR D’HORIZON DU CONCEPT ET BONNES PRATIQUES
MuleSoft Architecture Presentation
Kong API Gateway
Salesforce Flawless Packaging And Deployment
Identity Access Management (IAM)
IdP, SAML, OAuth
FIWARE Identity Management and Access Control
Ad

Similar to Integrating Fiware Orion, Keyrock and Wilma (20)

PPTX
Simple docker hosting in FIWARE Lab
PPTX
FIWARE Primer - Learn FIWARE in 60 Minutes
PPTX
Federico Michele Facca - FIWARE Primer - Learn FIWARE in 60 Minutes
PDF
Caching the Uncacheable
PDF
Jfrog artifactory as private docker registry
ODT
Kioptrix 2014 5
PDF
Infrastructure = code - 1 year later
PPTX
IBM Cloud Virtual Server/Machine - Setting up and Access
PPTX
Raspberry pi and Azure
PDF
One commit, one release. Continuously delivering a Symfony project.
PDF
Kubernetes security
PPTX
Interoute Virtual Data Centre api 101
PDF
Embedded systems
PPTX
MSWD:MERN STACK WEB DEVELOPMENT COURSE CODE
PDF
IBM Monitoring and Diagnostics Tools - Health Center 3.0.2
PPTX
Simple docker hosting on fiware lab
PDF
RoR Workshop - Web applications hacking - Ruby on Rails example
PDF
Gr8conf EU 2018 - Bring you infrastructure under control with Infrastructor
PDF
Securing Prometheus exporters using HashiCorp Vault
PDF
[Devconf.cz][2017] Understanding OpenShift Security Context Constraints
Simple docker hosting in FIWARE Lab
FIWARE Primer - Learn FIWARE in 60 Minutes
Federico Michele Facca - FIWARE Primer - Learn FIWARE in 60 Minutes
Caching the Uncacheable
Jfrog artifactory as private docker registry
Kioptrix 2014 5
Infrastructure = code - 1 year later
IBM Cloud Virtual Server/Machine - Setting up and Access
Raspberry pi and Azure
One commit, one release. Continuously delivering a Symfony project.
Kubernetes security
Interoute Virtual Data Centre api 101
Embedded systems
MSWD:MERN STACK WEB DEVELOPMENT COURSE CODE
IBM Monitoring and Diagnostics Tools - Health Center 3.0.2
Simple docker hosting on fiware lab
RoR Workshop - Web applications hacking - Ruby on Rails example
Gr8conf EU 2018 - Bring you infrastructure under control with Infrastructor
Securing Prometheus exporters using HashiCorp Vault
[Devconf.cz][2017] Understanding OpenShift Security Context Constraints
Ad

More from Dalton Valadares (20)

PDF
Primeiros passos com Openstack
PDF
Performance Evaluation of an IEEE 802.11g Network in an Industrial Environment
PDF
802.11g Signal Strength Evaluation in an Industrial Environment (Elsevier Int...
PDF
Towards 802.11g Signal Strength Estimation in an Industrial Environment: a Pr...
PDF
Towards 802.11g Signal Strength Estimation in an Industrial Environment: a Pr...
PDF
Internet das Coisas e a Indústria 4.0
PDF
Achieving Data Dissemination with Security using FIWARE and Intel Software Gu...
PDF
Internet das Coisas com Edgex Foundry
TXT
OPTEE on QEMU - Build Tutorial
PDF
Presentation of my paper in the IEEE Symposium on Computer and Communications...
PDF
Avaliação de Desempenho de uma Rede 802.11g em uma Usina Termoelétrica
PDF
Apresentação sobre o modelo de segurança OPC UA
PDF
Modelo de segurança OPC UA
PDF
Introdução à Gestão de projetos
PDF
Programação C - Aula 1
PDF
Programação C - Aula 2
PDF
Programação C - Aula 3
PDF
Programação C - Aula 4
PDF
Desenvolvimento Web com JSF
PDF
Comparison of signal smoothing techniques for use in embedded system for moni...
Primeiros passos com Openstack
Performance Evaluation of an IEEE 802.11g Network in an Industrial Environment
802.11g Signal Strength Evaluation in an Industrial Environment (Elsevier Int...
Towards 802.11g Signal Strength Estimation in an Industrial Environment: a Pr...
Towards 802.11g Signal Strength Estimation in an Industrial Environment: a Pr...
Internet das Coisas e a Indústria 4.0
Achieving Data Dissemination with Security using FIWARE and Intel Software Gu...
Internet das Coisas com Edgex Foundry
OPTEE on QEMU - Build Tutorial
Presentation of my paper in the IEEE Symposium on Computer and Communications...
Avaliação de Desempenho de uma Rede 802.11g em uma Usina Termoelétrica
Apresentação sobre o modelo de segurança OPC UA
Modelo de segurança OPC UA
Introdução à Gestão de projetos
Programação C - Aula 1
Programação C - Aula 2
Programação C - Aula 3
Programação C - Aula 4
Desenvolvimento Web com JSF
Comparison of signal smoothing techniques for use in embedded system for moni...

Recently uploaded (20)

PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
Comparative analysis of machine learning models for fake news detection in so...
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
Statistics on Ai - sourced from AIPRM.pdf
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PPTX
Build Your First AI Agent with UiPath.pptx
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PDF
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
PDF
Advancing precision in air quality forecasting through machine learning integ...
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PPTX
Training Program for knowledge in solar cell and solar industry
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
Early detection and classification of bone marrow changes in lumbar vertebrae...
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
Improvisation in detection of pomegranate leaf disease using transfer learni...
Comparative analysis of machine learning models for fake news detection in so...
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
Custom Battery Pack Design Considerations for Performance and Safety
Statistics on Ai - sourced from AIPRM.pdf
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
Consumable AI The What, Why & How for Small Teams.pdf
Enhancing plagiarism detection using data pre-processing and machine learning...
Build Your First AI Agent with UiPath.pptx
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
Advancing precision in air quality forecasting through machine learning integ...
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
Training Program for knowledge in solar cell and solar industry

Integrating Fiware Orion, Keyrock and Wilma

  • 1. Universidade Federal de Campina Grande (UFCG) Laboratório de Sistemas Distribuídos (LSD) Dalton Cézane Gomes Valadares FIWARE - How to begin with Orion Context Broker 1. Download the Orion VirtualBox image: http://bit.ly/fiware-orion024-vbox 2. Once you have the Orion VirtualBox image, configure it on your VirtualBox and run. 1GB RAM and 8GB HD storage were enough. 3. For Network Settings, you can choose NAT. You have to setup the following “Port forwarding” rule in VirtualBox: a. Protocol - TCP b. HOST IP - Your host IP c. HOST Port - 1026 (default) d. Guest IP - Your VM IP e. Guest Port - 1026 4. Now, you have a CentOS with Orion installed. Login and user for CentOS are both: fiware. 5. Test if you can ping your host machine ip and if you have access to Internet. 6. Update the Orion version with the command: sudo yum install contextBroker 7. To test, you can use the following command from your host machine: curl http:your_host_ip:1026/version (you will see the version of Orion) FIWARE - IdM Keyrock 1. The easier way to IdM Keyrock running is using docker. With docker installed in your machine, do: sudo docker run -d --name idm -p 8000:8000 -p 5000:5000 -t fiware/idm 2. This command will configure a container with IdM Keyrock on your machine, with user and password set to ‘idm’, Horizon mapped to port 8000 and Keystone mapped to port 5000. 3. To start the container, do: sudo docker start idm 4. To access the container, through bash: sudo docker exec -it idm bash 5. To test, you can use the following command from your host machine: curl http://your_host_ip:5000 or http://your_host_ip:8000 (you must see the json message about openstack keystone versions or the html code related to horizon start page) 6. Access horizon at localhost:8000 and click on Applications ---> Register. 7. Fill all the inputs. The application url is the url Keyrock accepts OAuth requests. The callback url is the url that the browser redirects to, after the OAuth flow is finished. FIWARE - PEP Proxy Wilma 1. With nodejs and npm installed in your machine, clone this repository: git clone https://github.com/ging/fiware-pep-proxy.git 2. Enter in the fiware-pep-proxy folder and run: npm install
  • 2. 3. After the installation process, copy the content of config.template to config.js file (create it). Configure the params config.app_host and config.app_port with your host address and port. 4. Run the server: nodejs server FIWARE - How to integrate Orion, Wilma and Keyrock 1. Once you have Orion, Wilma and Keyrock running and tested, let’s configure the integration between all of them 2. With Keyrock running (http://localhost:8000), access your application configured 3. Get the PEP Proxy username and password
  • 3. 4. Edit your Wilma PEP Proxy config.js file with these information: config.account_host = 'http://idm_ip:8000'; //ip from IdM Keyrock instance config.keystone_host = 'idm_ip'; //ip from IdM Keyrock instance config.keystone_port = 5000; config.app_host = 'orion_ip'; //ip from Orion instance config.app_port = '1026'; // Use true if the app server listens in https config.app_ssl = false; // Credentials obtained when registering PEP Proxy in Account Portal config.username = 'pep_proxy_3e30a1e810284995b35fe61abc8e7044'; config.password = '4c87c6db2a9a43a4a9d9e1e95759df62'; 5. Now, you have to request a valid token in the IdM Keyrock. To get this, do a post request with the following information: POST to "http://idm_ip:8000/oauth2/token" Payload: grant_type=password&username=YOUR_USERNAME&password=YOUR_PASSWORD&cli ent_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET In the payload, change all “YOUR_” params to your own information: username and password from a valid registered user in the Keyrock and client_id and client_secret from a valid registered application in the Keyrock. Headers: 'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': 'Basic AUTH_HEADER' Where AUTH_HEADER must be changed to a Base64 encoded of this information: “client_id :client_secret” - something like base64(client_id + “:” + client_secret) 6. After get a valid token from IdM Keyrock, you can make some request for Orion, with the following information: GET or POST to http://idm_ip/v2/entities (note the idm_ip because we have the Wilma PEP Proxy running on the IdM container and protecting our Orion instance. So, all the requests to Orion will pass by Wilma to be authenticated and authorized) Headers: 'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': ‘your valid IdM token obtained in the last step’ Payload: According to Orion operations. See the NGSI v2 to learn about the JSON formats.