Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Fix #6 Authentication test incorrectly uses POST after redirect #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sylvain-Bugat
Copy link

Fix issue #6, this error occurs only when authenticating with user/password and when the Rundeck host is wrong (IP adresses or "localhost" if hostname is defined).

The fix consits of restarting the authentication sequence if the real Rundeck hostname is different when receiving a HTTP redirect 302 in response of an authentication POST. Because the JSESSIONID cookie is lost if the hostname change during the authentication redirect sequence (debugged with Wireshark).

This fix has been tested successfully with Rundeck Monitor using login/password authentication and IP address instead of Rundeck server host.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant