How to use the pycognito.Cognito function in pycognito

To help you get started, we’ve selected a few pycognito examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NabuCasa / hass-nabucasa / hass_nabucasa / auth.py View on Github external
def _cognito(self, **kwargs):
        """Get the client credentials."""
        return pycognito.Cognito(
            user_pool_id=self.cloud.user_pool_id,
            client_id=self.cloud.cognito_client_id,
            user_pool_region=self.cloud.region,
            botocore_config=botocore.config.Config(signature_version=botocore.UNSIGNED),
            session=self._session,
            **kwargs,
        )

pycognito

Python class to integrate Boto3's Cognito client so it is easy to login users. With SRP support.

Apache-2.0
Latest version published 6 months ago

Package Health Score

74 / 100
Full package analysis