If a user attempts to log in to ECMPS 2.0, and that user has unsigned CAMDBS certification statements, the user should not be allowed to login to ECMPS 2.0. In this situation. the user should be shown the message "You have not signed all of the necessary certification statements which are associated with your responsibilities as a representative or agent. Until these certification statements have been signed, you will not be able to log in to ECMPS. Please use the CAMD Business System to sign all of your required certification statements."
The CBS permissions API will be updated (see https://camddevelopment.atlassian.net/browse/EASEY-420) to contain an additional "missingCertificationStatements" element. If "missingCertificationStatements" is "true", then the user's ECMPS 2.0 login attempt should fail, and they should see the above message. If "missingCertificationStatements" is "false", then the the ECMPS 2.0 login attempt should proceed normally.
NOTE: We should also update the logic used when permissions are mocked to return "true" (or assume "true") for all users.
Acceptance Criteria:
Set up at least one user in CBS so that they will have unsigned certification statements.
Confirm that ECMPS 2.0 login attempts for this user fail with the above message.
Log in to CBS as the user and sign the required certification statements during the CBS login process.
If a user attempts to log in to ECMPS 2.0, and that user has unsigned CAMDBS certification statements, the user should not be allowed to login to ECMPS 2.0. In this situation. the user should be shown the message "You have not signed all of the necessary certification statements which are associated with your responsibilities as a representative or agent. Until these certification statements have been signed, you will not be able to log in to ECMPS. Please use the CAMD Business System to sign all of your required certification statements."
The CBS permissions API will be updated (see https://camddevelopment.atlassian.net/browse/EASEY-420) to contain an additional "missingCertificationStatements" element. If "missingCertificationStatements" is "true", then the user's ECMPS 2.0 login attempt should fail, and they should see the above message. If "missingCertificationStatements" is "false", then the the ECMPS 2.0 login attempt should proceed normally.
NOTE: We should also update the logic used when permissions are mocked to return "true" (or assume "true") for all users.
Acceptance Criteria:
Sample API Responses