Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEW Module to setup OpenID Connect module #30317

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from

Conversation

MaximilienR-easya
Copy link
Contributor

New

OpenID Connect as a standard module

htdocs/user/logout.php Outdated Show resolved Hide resolved
htdocs/core/tpl/login.tpl.php Outdated Show resolved Hide resolved
@eldy eldy added the PR to fix or conflict to solve PR needs to be fixed to be integrated (except for conflicts, a comment describes the fix to do) label Jul 10, 2024
@@ -887,7 +887,7 @@ function analyseVarsForSqlAndScriptsInjection(&$var, $type, $stopcode = 1)
if (GETPOST("username", "alpha", $allowedmethodtopostusername)) { // For posting the login form
$goontestloop = true;
}
if (GETPOST('openid_mode', 'alpha', 1)) { // For openid_connect ?
if (GETPOST('openid_mode', 'alpha')) { // For openid_connect ?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you confirm we must remove the parameter ",1" here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to allow POST, this is used on the form inside 'callback.php'

We want to prevent the argument to stay in the URL when a user doesn't change page after login. When a new OpenID authentication is needed and this parameter is still present in the URL this cause an error since it's awaiting the code parameter if this parameter is present and the user not logged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eldy eldy added Discussion Some questions or discussions are opened and wait answers of author or other people to be processed and removed PR to fix or conflict to solve PR needs to be fixed to be integrated (except for conflicts, a comment describes the fix to do) labels Jul 16, 2024
@eldy eldy changed the title Add OpenID Connect module NEW Module to setup OpenID Connect module Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants