Auth: preserve project prefix cookie path on reauth clear and invalid token

What does this MR do and why?

Closes #1223.

When feature.ProjectPrefixCookiePath is enabled, getSessionFromStore resets session.Options.Path = "/" + namespaceInPath. While reauthenticateExpiredSession restored the project prefix via session.appendPath(requestProjectPrefix(r, d)) before saving, clearReauthMarkerOnSuccess and checkResponseForInvalidToken called session.Save(r, w) without restoring the project prefix path.

This MR extracts setSessionProjectPrefixPath(session, r, d) and applies it before saving in clearReauthMarkerOnSuccess, checkResponseForInvalidToken, and reauthenticateExpiredSession.

Closes #1223

Merge request reports

Loading
Loading