jina-ai / dashboard

Interactive UI for analyzing Jina logs, designing Flows and viewing Hub images
https://dashboard.jina.ai
Apache License 2.0
118 stars 60 forks source link

Authentication issue when self hosting the dashboard #24

Closed emrebayramc closed 4 years ago

emrebayramc commented 4 years ago

Hi @hanxiao, I am new to jina-ai but I decided to spend more time to play with it and hopefully contribute with PRs(appreciate any recommendation about which repo to start). I have tried to host the dashboard on my localhost following the doc but I am having an authentication issue. I followed the code and it looks like the github authentication goes through jina hub url. And when it returns successfully it redirects to jina ai dashboard instead of localhost dashboard.

So I have a few questions:

Or am I missing something? Thanks

emrebayramc commented 4 years ago

Ok I guess as far as I understand to be able to self-host dashboard; I need to start hubAPI with my own config.js. I will try this and see if it works.

Edit: It looks like most of the functionality works without authentication. And login is only required to pull the hub images. So for now I don't need to setup my own hub with my own github auth.

imsergiy commented 4 years ago

Since the hub uses GitHub authentication for interacting with content (ratings, reviews) the origin for the hub API is restricted to https://dashboard.jina.ai. Aside from the hub, the rest of the dashboard does not require authentication and will work properly on a different origin.