Testing without notifications

Suppress optional notifications

To skip optional notifications during Home Realm Discovery (IdP selection) on the eIAM BTB, eIAM provides a feature that can easily be used by test automation and E2E monitoring. This feature ensures that optional notifications are suppressed.

The User-Agent can set an HTTP request header for HTTP requests to the BTB (feds-r.eiam.admin.ch / feds-a.eiam.admin.ch / feds.eiam.admin.ch):

  • X-MOS-Agent: Automation

Background

The flows and processes in eIAM are optimized for use by humans. This can be challenging for automated processes such as automated testing or E2E monitoring. Even small changes in the login flow are usually immediately recognized and easily adapted by human users. In contrast, automated processes typically require adjustments to the automation when such changes occur.

One possible factor is notifications to users, for example information about upcoming maintenance work or other service disruptions affecting eIAM or applications integrated with eIAM. A human user reads the information, acknowledges it, and then continues the login process. An automated process, however, is usually unable to handle such a situation. As a result, the change in the expected flow often causes an error because the automated process does not anticipate this additional step.

In particular, as part of the replacement of CH-LOGIN with AGOV, an «Intermediate Page» is displayed after selecting CH-LOGIN starting from the «AGOV-Push» phase and later during the «AGOV-Force» phase - beginning with the eIAM release «Mönch». This page informs users about the transition to AGOV, encourages them to migrate and, in the «AGOV-Force» phase, requires them to switch from CH-LOGIN to AGOV.

With the solution documented here, this page can be skipped, allowing a direct redirect to CH-LOGIN.