Cognito Login
The application uses AWS Cognito for user authentication in deployed environments. This ensures secure access to the application and its features. Two authentication options are available:
- Cognito User Login: Users authenticate directly using their Cognito credentials.
- Azure SSO Login: Azure Single Sign-On (SSO) is integrated for seamless authentication. This feature is currently available in the dev environment, with plans to extend it to production.
Login Screen
The login screen provides users with the option to authenticate using either Cognito credentials or Azure SSO. Upon successful login, users are redirected to the application, and their session is securely managed.
Running Locally
When running the application locally, Cognito authentication is bypassed. Instead, the backend uses a developer user for authentication.
By default, the developer user is set to:
- Email:
dev@ons.gov.uk - Groups:
admin,reviewer
The application will run without requiring Cognito login.
Notes
- Ensure the Cognito User Pool is configured with the necessary users and groups for deployed environments.
- Azure SSO integration is currently available in the development environment and will be extended to production in future updates.
- The application uses Cognito tokens to manage sessions and permissions in production.