This repository contains client applications that can be used to test an app client in the BC Gov Cognito SSO Shared Service.
An example Next.js application to connect to Cognito App client without 3rd party library or wrapper.
examples/next-app
..env.example
to .env.local
,.env.local
. yarn install
yarn dev
examples/next-app
.env.example
to .env
,.env
.docker-compose
file: docker-compose up
.env
file located next to the docker-compose.yml file.An example Next.js application to connect to Cognito App client using JWT (JSON Web Token).
Next-App
.An example Next.js application to connect to Cognito App client using openid-client
, which is a server side OpenID Relying Party.
Next-App
.This is an example React.js application to connect to Cognito App client on client side using Amplify library.
examples/react-app-amplify
.src/aws-exports.js.sample
to src/aws-exports.js
,src/aws-exports.js
. yarn install
yarn start
examples/react-app-amplify
.src/aws-exports.js.sample
to src/aws-exports.js
,src/aws-exports.js
.docker-compose
file: docker-compose up
An example React.js application to connect to Cognito App client respecting OAuth 2.0 Authorization Code with PKCE Flow.
React-App-Amplify
.If you would like to contribute, please see our CONTRIBUTING guidelines.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.