Skip to main content

An AppSyncAuthentication implementation for gql.transport.aiohttp.AIOHTTPTransport using pycognito

Project description

gql-appsync-cognito-authorization

An AppSyncAuthentication implementation for gql.transport.aiohttp.AIOHTTPTransport using pycognito

Installation

pip install gql-appsync-cognito-authentication

Usage

from gql import Client
from gql.transport.aiohttp import AIOHTTPTransport
from gql_appsync_cognito_authentication import AppSyncCognitoAuthentication
from pycognito import Cognito

cognito = Cognito(...)

client = Client(
    transport=AIOHTTPTransport(
        auth=AppSyncCognitoAuthentication(cognito),
        ...
    ),
    ...
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page