Vitalii Kulanov

Results 9 comments of Vitalii Kulanov

There are two types of token available in Cognito: `IdToken` and `AccessToken`. Make sure that you are using correct one.

@br-allstreet , try to do something like this: ``` from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer async def get_current_user( settings: AppSettings = Depends(get_app_settings), http_auth: Optional[HTTPAuthorizationCredentials] = Depends(HTTPBearer(auto_error=False)), ) -> CognitoCurrentUser: current_user_auth =...

I've faced with the same issue trying to write unittests using `moto` to fake Cognito resources. And in my case there is no straightforward way to pre-configure environment variable, since...

Still valid :-)

Any workarounds besides using `--parameter-overrides` during building...

@ddias00 maybe you can use `mysql2` instead. It already has certificate you are required: https://github.com/sidorares/node-mysql2/blob/master/lib/constants/ssl_profiles.js#L1789-L1810

I think the fastest solution for now could be to generate async client based on available OpenAPI specification. But yes, it's nice to have officially supported "async" version

Ok, here is what you can try to use: ``` schema = Schema( And({ # First name Optional('foo'): str, # Second name Optional('bar'): str }, lambda d: bool(d)) ) schema.validate({})...

> > Ok, here is what you can try to use: > > ``` > > schema = Schema( > > And({ > > # First name > > Optional('foo'):...