icgc-argo / platform-api

https://api.platform.icgc-argo.org/graphql
GNU Affero General Public License v3.0
0 stars 0 forks source link

Accessing Program Service HTTP Public Endpoint #647

Closed daniel-cy-lu closed 1 year ago

daniel-cy-lu commented 1 year ago

Description of changes

Connecting to Program Service's HTTP endpoints by creating a new resolver and error handler. The HTTP endpoints are public. The original endpoints (GRPC) needs authentication. The system will check whether the query contains info that are all public. If that's the case, automatically, the HTTP endpoints is used. And this could be done without auth.

Vice versa, if a query contain private info, then GRPC endpoints are used and this would require auth.

Type of Change

daniel-cy-lu commented 1 year ago

Thanks for the review Dan!