alphagov / govuk-prototype-kit

Rapidly create HTML prototypes of GOV.UK services
https://prototype-kit.service.gov.uk
MIT License
303 stars 236 forks source link

Support multiple passwords #2369

Closed BenSurgisonGDS closed 9 months ago

BenSurgisonGDS commented 9 months ago

Several requests have been made for prototypes to support additional temporary passwords that can be given to guest users to use the deployed prototype while maintaining the ability for more permanent users to keep using the main password.

The functionality in this ticket allows for an environment variable PASSWORD_KEYS which is expected to contain a comma separated string that will contain addional environment variable names that can be set for additional passwords.

If the following environment variables exist:

then any of the passwords password, password01, or password02 can be used.