Photo by Krzysztof (Kriss) Szkurlatowski from FreeImages
Photo by Krzysztof (Kriss) Szkurlatowski from FreeImages
Photo by Krzysztof (Kriss) Szkurlatowski from FreeImages

The OpenAPI 3.0 specification has been around for a while now but to date I’ve still been using its predecessor — the Swagger 2.0 definition. For a new project I decided to define the REST API using the OpenAPI 3.0 definition and feed that into some of the excellent tooling provided by Swagger to generate a Spring based Java project to help kickstart the implementation.

Swagger 2.0 vs OpenAPI 3.0

The good news for those that are familiar with Swagger 2.0 is that the changes made for OpenAPI 3.0 are backwards compatible in a functional sense, although your JSON or YAML file will need to be updated as the format has changed a little (tools such as the Mermade Swagger 2.0 …

Image for post
Image for post
Photo by CMDR Shane on Unsplash

In this third and final post of my AWS Cognito series I’ll write about creating and securing a simple Express based Node.js REST API service by using an AWS Cognito issued JSON Web Token (JWT) access code. We’ll also modify the React UI application we created in the second post of this series to call this REST API and include one of the JWT access codes it received from Cognito.

JWT overview

There is extensive documentation already covering JWT (try https://jwt.io/introduction) …

In this second post of the series I’ll write about integrating a simple React UI application with the AWS Cognito user pool we configured in the first post. I’ll show how to use the built in sign-in and sign-up UI content provided by Cognito and how to combine them with a React UI. We’ll also explore the customisation options for this built in UI content and show how to add our own logo and branding to them.

Image for post
Image for post
The skeleton React app integrated with Cognito

To recap from the first post, we created a Cognito user pool and configured it so it is ready to be used from a client application. We also configured the custom domain name for the user pool then tested we could reach the built in sign-in and sign-up pages. …

About

Arron Harden

SaaS Architect and Lead Developer. https://arronharden.com/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store