CDLUC3 / dmsp_backend_prototype

The GraphQL (Apollo server) backend for the new DMSP system
0 stars 0 forks source link

Setup authentication logic in Apollo server #2

Closed briri closed 2 months ago

briri commented 6 months ago

We need to add authentication logic to the Apollo server.

See: https://www.apollographql.com/docs/apollo-server/security/authentication

briri commented 6 months ago

Not sure if we will need this. It depends on how we are going to manage user Auth in general, Cognito with the Shib solution outlined in this ticket or if we will host Shib in an ECS cluster and then either host the logic for email+password authN here or in a Lambda or another external service.

briri commented 4 months ago

Plan will be to add passport to the Apollo server as middleware. We will want it to handle:

briri commented 3 months ago

Decided not to use Passport due to its complexity and "black box" handling.

Instead, we: