Skip to content

Conversation

@mjansenDatabay
Copy link
Contributor

@mjansenDatabay mjansenDatabay commented Dec 17, 2025

This commit suggests ignoring the force_login
command in the tryAuthenticationOnLoginPage function.

If the public area is enabled, and ILIAS detects
that the user has no valid ILIAS session and access
to the requested resource, an HTTP redirect to the
login view with a cmd=force_login query parameter
will be initiated. This currently leads to a problem
where the automatically initiated "Apache Authentication"
Single Sign-On will not be triggered, even if configured
this way.

Side effect of this PR: With this change, requesting the login page with
an enabled "Apache Authentication" will only be possible
without triggering the automatically initiated Single Sign-On,
if passed_sso=1 is given in the query parameters (no change was
required to achieve this behaviour).


Commit one has to be picked to release_10 as well, commit two has to be be picked to all maintained branches.

This commit suggests ignoring the `force_login`
command in the `tryAuthenticationOnLoginPage` function.

If the public area is **enabled**, and ILIAS detects
that the user has **no valid ILIAS session and access**
to the requested resource, an HTTP redirect to the
login view with a `cmd=force_login` query parameter
will be initiated. This currently leads to a problem
where the automatically initiated "Apache Authentication"
Single Sign-On will **not** be triggered, even if configured
this way.

Effect: With this change, requesting the login page with
an **enabled** "Apache Authentication" will only be possible
**without** triggering the automatically initiated Single Sign-On,
if `passed_sso=1` is given in the query parameters (no change was
required to achieve this behaviour).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix improvement php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants