@labdigital/federated-token-apollo v2.0.0
Federated Token - Apollo Plugin
This package provides support for both Apollo Server (including Gateway). It processes the token and forwards it to downstream services and also reads new/updated tokens from downstream services.
It provides three Apollo specific classes:
GatewayAuthPlugin- An Apollo plugin for the GraphQL gateway that verifies the signature of the token passed and decrypts the embedded JWE property. It stores the verified and decrypted token on the context asfederatedToken.FederatedGraphQLDataSource- An Apollo GraphQL data source used in the GraphQL Gateway which passes thefederatedTokenfrom the context to the datasource (federated service) asx-access-tokenHTTP header.FederatedAuthPlugin- An Apollo plugin for federated services that reads the token passed in thex-access-tokenheader and stores it on the context asfederatedToken.
When a federated services creates a new token (when non exist) it can also
return a refresh token in the x-refresh-token header. The gateway will then
encrypt all refresh tokens and encrypt them before passing them to the client
as x-refresh-token header.
1 year ago
1 year ago
9 months ago
9 months ago
8 months ago
8 months ago
9 months ago
11 months ago
9 months ago
11 months ago
11 months ago
1 year ago
9 months ago
7 months ago
7 months ago
7 months ago
7 months ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago