Skip to content

Conversation

@MorrisJobke
Copy link
Member

@LukasReschke @ChristophWurst @icewind1991 Please have an in detail look into this. Does this make sense? I only resolved one conflict and naively ported this. Login still works, but I can't judge on this change.

regenerate session ID on apache login

ocs needs to be able to login via apache

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@mention-bot
Copy link

@MorrisJobke, thanks for your PR! By analyzing the history of the files in this pull request, we identified @icewind1991, @tomneedham and @LukasReschke to be potential reviewers.

$loginSuccess = $userSession->tryTokenLogin($request);
if (!$loginSuccess) {
$loginSuccess = $userSession->tryBasicAuthLogin($request, \OC::$server->getBruteForceThrottler());
if (OC_User::handleApacheAuth()) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This handleApacheAuth() was basically added here.

}
self::getUserSession()->setLoginName($uid);
$userSession = self::getUserSession();
$userSession->getSession()->regenerateId();
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the only changed line here.

@ChristophWurst
Copy link
Member

How can I (easily) test stuff like this? Do we have a testing setup, e.g. with docker images somewhere, similar to LDAP?

@MorrisJobke
Copy link
Member Author

How can I (easily) test stuff like this? Do we have a testing setup, e.g. with docker images somewhere, similar to LDAP?

🙈

@MorrisJobke
Copy link
Member Author

@LukasReschke Any idea how to test this?

@MorrisJobke
Copy link
Member Author

I noticed that this code is not called in our code base: so I removed it #4430

@MorrisJobke
Copy link
Member Author

And here is the cleaned up version: #4539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants