Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casbin dashboard UI inconsistency in the running port and authentication problem #140

Closed
mteodor opened this issue Dec 10, 2020 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@mteodor
Copy link

mteodor commented Dec 10, 2020

What is supposed to be running port ?
It starts on 3000, but when authentication against github is performed it redirects to http://localhost:3030/callback
When I changed all references of 3030 to 3000 it seems that it works fine, however there is a problem in the authorization flow
It seems that https://api.github.com/user/emails requires that token is in the authorization header

@mteodor mteodor changed the title Casbin dashboard UI inconsistency in the running port Casbin dashboard UI inconsistency in the running port and authentication problem Dec 10, 2020
@mteodor
Copy link
Author

mteodor commented Dec 16, 2020

Authentication problem will be resolved with #139
However ports are not consistent in the web app.

@hsluoyz
Copy link
Member

hsluoyz commented Dec 16, 2020

@mteodor If you are not using Windows, you probably start with wrong port: 3000. In this case, you need to change the following code to use port: 3030

https://github.com/casbin/casbin-dashboard/blob/6a0b240226ff173030c632594adad8f134e14f4f/web/package.json#L18-L24

@hsluoyz hsluoyz self-assigned this Dec 16, 2020
@hsluoyz hsluoyz added the question Further information is requested label Dec 16, 2020
@hsluoyz hsluoyz closed this as completed Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants