[x] remove hard coded NDEX user/password variables
[x] fix bugs in the google login button
[x] when an authenticated NDEx user exports a network from CE, it should be uploaded to their NDEx account
Author:
[x] One or more reviewers have been assigned.
[x] Automated tests have been included in this pull request, if possible, for the new feature(s) or bug fix.
[x] The associated GitHub issues are included (above).
[x] Notes have been included (below).
Reviewers:
[x] All automated checks are passing (green check next to latest commit).
[x] At least one reviewer has signed off on the pull request. Reviewers have two business days to review the pull request, after which the author may merge in the pull request unilaterally.
Notes
I added a NDEx client instance to the network editor controller. This allows the component tree to share the same authenticated user info.
When the google user is logged in, set the authtoken and auth type in the ndexClient instance
When the google user logs out, set the authtoken and auth type to null
When the google user exports their network to NDEx, the client (react app) sends the user's auth token in a request to the CE node server. The CE node server then exports the network NDEx using the user's auth token. @jingjingbic Not sure if this is a good idea or not.
General information
Associated issues: #87 #59 #57
Checklist
Author:
Reviewers:
Notes