requests-oauthlib icon indicating copy to clipboard operation
requests-oauthlib copied to clipboard

Amazon Cognito support?

Open space55 opened this issue 4 years ago • 1 comments

Hello,

I just had a quick question. Are there any plans to provide support for Amazon Cognito?

They have an "oddity" with how they accept the client ID & secret on the TOKEN route: https://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html

If the client was issued a secret, the client must pass its client_id and client_secret in the authorization header through Basic HTTP authorization. The secret is Basic Base64Encode(client_id:client_secret).

Last I checked, this wasn't standard, but it's also possible I'm completely misremembering the RFC.

Are there any plans to support this in the library? I can write a PR if needed.

Thanks!

space55 avatar Oct 25 '20 00:10 space55

Please feel free to submit PR

jtroussard avatar Nov 25 '20 16:11 jtroussard