Hi welcome to the community -
here’s a post that explains how you can configure Cognito for Authentication with Discourse