ConSol / sakuli

Sakuli is an end-2-end testing and monitoring tool for web sites and common UIs with multiple monitoring integrations
http://www.sakuli.org
118 stars 29 forks source link

Disable Sahi proxy method which remove the authorization header (e.g. Bearer Token) #306

Closed toschneck closed 6 years ago

toschneck commented 6 years ago

For some web application which use a construct like "Bearer Tokens" Sahi removes the authorization header and so break the tests: The website will continuously logout and are not controllable.

Example:

    _navigateTo("https://onlinerechner.contactm.de/b-os/");
    _highlight(_div("Produkt & Varianten auswählen"));

Like also discussed at Sahi Community - Authorization header getting stripped out this behavior is not wanted.

Solution: Skip the execution of the action HttpRequest.removeHeader("Authorization")

Tasks: