Best practice for handing multiple REST API authentication within Absinthe

Hello,

I’m looking for a best solution to handle authentication of different REST API sources that I will use within
the Absinthe GraphQL API.

The question is not about authentication to the GraphQL API itself, but about how Absinthe would forward authentication to Rest APIs and how it manages the returned token(s) from those Rest API endpoints.

It might be the lack of experience of mine or my own misunderstood but I don’t see any clear indication on how to handle multiple token(s) that are returned from different API endpoint.

(I read the Absinthe book but the source is only ecto not a protected API. Having a protected Rest API example would be very helpful).

Any hint and links to solution are welcome.

Thanks,
Vic

2 Likes