Example – user authentication integration

The following is an example of a bidirectional integration with a User Authentication system, such as AWS Cognito. The outbound communication demonstrates directing the external service to send an invitation to a new user. The inbound communication demonstrates re-publishing the external events for user sign-up and sign-in. In the case of an email system, this communication would entail sending emails and reacting to the likes of bounce and unsubscribe events, whereas for a payment processor we would process payments and react to disputes, refunds, and so forth. The following is a fragment from a Serverless Framework serverless.yml file, which demonstrates the configuration and registration of the ...

Get Cloud Native Development Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.