Local setup of OIH - Can't create components and OIH user is redirected to auth login page when clicking on Hub & Spoke menu option in Web-UI
See original GitHub issueDescribe the bug While following the User Tutorial following bugs appeared
- After configuring a component in JSON format in the Web-UI service, you click save and you return to the Web-UI. Then you should see listed configured components, but nothing is appearing, also the component count equals zero.
- When clicking on Hub & Spoke OIH the Web-UI immediately redirects to login page
http://web-ui.localoih.com/auth
To Reproduce
I followed the steps from the official Local Setup tutorial from the OpenIntegrationHub Homepage
After that via postman I created the admin token, the service account and the persistent service token. Then I replaced the placeholder in the SharedSecret.yaml
with the base64 encoded persistent service token. Then I applied the Secret Service and the rest of the services to the kubernetes node.
Then I continued with the User Tutorial
Steps to reproduce the behavior:
- Setup minikube v1.7.3 and kubernetes v1.17.0
- Start minikube
minikube start --vm-driver=virtualbox --memory 16384 --cpus 4
kubectl apply -f ./1-Platform
- Windows host rule setup
kubectl apply -f ./2-IAM
- Login as Admin and generate token
- Create a Service Account
- Create persistent token
- Base64 encode the returned token
- Copy encoded token to
SharedSecret.yaml
and set entry foriamtoken
kubectl apply -f ./3-Secret.
kubectl apply -Rf ./4-Services
- Open Web-UI and login via admin account
- Do the User Tutorial
- Click on Components, click on
Add
button and copy example json connectors, click on save
{
"distribution":{
"type":"docker",
"image":"elasticio/timer:ca9a6fea391ffa8f7c8593bd2a04143212ab63f6"
},
"access":"public",
"name":"Timer",
"description":"Timer component that periodically triggers flows on a given interval"
}
- No data / component stored (see provided screenshot). Component count equals zero
- For component
Hub and Spoke
: When clicking, I am immediately redirected tohttp://web-ui.localoih.com/auth
Expected behavior
- Components should be stored and displayed correctly
- The service Hub & Spoke should work and display correctly.
Screenshots Configuring component After saving nothing (no component) displayed:
Issue Analytics
- State:
- Created 4 years ago
- Comments:24 (14 by maintainers)
Top Results From Across the Web
Docs unclear on Redirect URI when overriding built-in AAD ...
I'm publishing a static site, generated with Hugo. I would like my static site only visible to authenticated users in my AzureAD Tenant....
Read more >How to fix the Login Page Refreshing and Redirecting Issue in ...
The WordPress Login page refreshing and redirecting error results in redirecting the user to the login page when they attempt to login to ......
Read more >Add Authentication to Any Web Page in 10 Minutes
Login Redirect URIs: The URLs that your app should redirect back to once a user has authenticated. For 99% of you, this should...
Read more >Aviatrix Controller and Gateway Release Notes
AVX-24730 - The user should be able to go to the Settings > Controller > Login Customization page, the page allows the user...
Read more >Configuration and Deployment Examples
Fireware Configuration Examples provide information to help you configure your WatchGuard Firebox for your specific business needs. Use WatchGuard Application ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tboehle Alright, I think I got it to work. It should work automatically on a fresh install, but if you’d like to modify your existing installation instead, here’s how to:
Download the newest version of the
minikube
folder.Expose urls to the new services:
kubectl apply -f ./1-Platform
your_minikube_ip app-directory.localoih.com
,your_minikube_ip skm.localoih.com
, your_minikube_ip dispatcher-service.localoih.com. Alternatively, you can also just re-add the whole batch as described on the updated ReadmeUsually this would be unsafe, as the “all” permission is very powerful, but on a local installation that shouldn’t be an issue.
kubectl apply -f ./3-Secret
Update
, find the fieldid
and copy its value./4-Services/dispatcher-service/k8s
and open the filedeployment.yaml
.ReplaceMe
with the id value you just copied. Make sure you don’t accidentally change anything about the indentations of the filekubectl apply -Rf ./4-Services
And that should hopefully do the trick, allowing you to access the App Directory and Hub&Spoke menus in the WebUi to experiment with them. If any issues persist, please do feel free to let us know!
@tboehle You’re correct that fetching specific data on demand is not currently part of the usual integration flow concept. So far, they’re one-directional: The source-adapter fetches data based on information it only knows locally (usually anything that updated since the last fetch) and pushes that data down the line, where it is eventually pushed to the target application.
However, the Data Hub might offer an approach for a use-case like this. As you may already know, the Data Hub can optionally be used as a central data store for flows. So you could have an arbitrary number of source applications feeding data into the Data Hub for storage, which could then be fetched on demand by a target application via the Data Hub’s REST API. The logic for when and what to fetch would have to be implemented outside the OIH, however.