-
Notifications
You must be signed in to change notification settings - Fork 0
Remove mock auth & split REST APIs #2
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good for the authentication part :)
.env
Outdated
EXTEND_ESLINT=true | ||
|
||
REACT_APP_API_GATEWAY=api/gateway | ||
REACT_APP_WS_GATEWAY=ws/gateway | ||
REACT_APP_API_GATEWAY=/api/gateway | ||
REACT_APP_WS_GATEWAY=/ws/gateway | ||
|
||
EXTEND_ESLINT=true | ||
REACT_APP_SRV_STUDY_URI=study | ||
REACT_APP_SRV_CONFIG_URI=config | ||
REACT_APP_SRV_CONFIG_NOTIF_URI=config-notification | ||
REACT_APP_SRV_USER_ADMIN_URI=user-admin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a bit confusing to have something that different from gridstudy-app
- REACT_APP_API_GATEWAY=/api/gateway : there is not any "/" in front of the URL in gridstudy
- server URI are defined in service files directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- it's a fix : we define all URLs in services like
STUDY_URL = ``${process.env.REACT_APP_API_GATEWAY}/${process.env.REACT_APP_SRV_STUDY_URI}/v1``;
, so we already have a slash in url, no use to have double
it don't pose a problem in gridstudy for example because consecutive slashes are treated like one only for URL - it's to offer more configuration of the application without having to edit all files
we can configure the gateway path, so why not also the service name/path ?
GridAdmin need to use multiples servers while being authenticate, so mock auth isn't usable as is.
Also split rest API in modules for better readability.