Closed Amejonah1200 closed 1 year ago
It would be helpful if you could submit a PR or, at the least, explain exactly which pycognito
methods you would like to call with these additional arguments.
https://github.com/pvizeli/pycognito/blob/67663552bf1b926f37794822b8467ad5aded6f41/pycognito/__init__.py#L200-L203 These 2 clients have these 3 additional parameters.Cognito
and RequestsSrpAuth
could accept these and pass through:
https://github.com/pvizeli/pycognito/blob/67663552bf1b926f37794822b8467ad5aded6f41/pycognito/__init__.py#L145 https://github.com/pvizeli/pycognito/blob/67663552bf1b926f37794822b8467ad5aded6f41/pycognito/utils.py#L37 I could try to make a PR when I have enough free time at hand.
In some implementations of logins are proxying calls through their own systems. Botoclient has a endpoint_url parameter, but pycognito doesn't allow to pass it. Also, when using this lib from an internal corporate network, the ssl fails as there is one self signed cert in the chain, I would like to be able to configure those.
RequestSrpAuth should have it and Cognito, which takes it and packs in kwargs for boto client.