History log of /dokuwiki/inc/auth.php (Results 26 – 50 of 324)
Revision Date Author Comments
# 7d34963b 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: control flow line breaks


# 177d6836 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: control flow whitespaces


# a19c9aa0 30-Aug-2023 Gerrit Uitslag <klapinklapin@gmail.com>

recover comments in list


# dccd6b2b 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: function call spacing


# d868eb89 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: function declaration braces/spaces


# c1482d1c 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: function argument spacing


# 24870174 29-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector fixes to the rest of inc


# 486f82fc 21-Aug-2023 Andreas Gohr <andi@splitbrain.org>

add setting to define the samesite cookie policy

As mentioned in
https://github.com/dokuwiki/dokuwiki/pull/3994#pullrequestreview-1473052428
there might be occasions when users might want to change

add setting to define the samesite cookie policy

As mentioned in
https://github.com/dokuwiki/dokuwiki/pull/3994#pullrequestreview-1473052428
there might be occasions when users might want to change the policy to a
stricter one or the somewhat more lenient Lax implementation of current
browsers.

show more ...


# bf8392eb 09-Jun-2023 Andreas Gohr <andi@splitbrain.org>

use samesite=Lax cookie attribute #2849

Since this has been the default in Chrome for a while, no sideeffects
are to be expected.


# 62bf3ac0 03-Feb-2023 Damien Regad <dregad@mantisbt.org>

Check Basic Auth scheme in Authorization header

Prior to this, auth_setup() would simply assume that the Authorization
header was using the Basic auth scheme, but there are other available
ones, whi

Check Basic Auth scheme in Authorization header

Prior to this, auth_setup() would simply assume that the Authorization
header was using the Basic auth scheme, but there are other available
ones, which could result in incorrect processing of the header's data.

We now specifically check that we have the `Basic` scheme, and only then
perform the base64_decode to get the username and password.

show more ...


# 0ba8a0de 19-Oct-2022 Andreas Gohr <andi@splitbrain.org>

Merge pull request #3754 from splitbrain/sexplode

introduce sexplode() as a PHP8 safe explode()


# ec34bb30 19-Oct-2022 Andreas Gohr <andi@splitbrain.org>

Update core code to make use of sexplode()

This makes use of our own explode mechanism everywhere were we expect a
fixed number of results.


# 03062864 26-Aug-2022 Andreas Gohr <andi@splitbrain.org>

use $INPUT to access authentication environment #3750

This should fix warnings about missing data.


# 0b1b444c 15-Aug-2022 AdaKaleh <31895292+adakaleh@users.noreply.github.com>

Remove Accept-Encoding from auth_browseruid()

Browsers do not send the same Accept-Encoding header for all requests, so using
it as part of auth_browseruid() can break things. For example, the audi

Remove Accept-Encoding from auth_browseruid()

Browsers do not send the same Accept-Encoding header for all requests, so using
it as part of auth_browseruid() can break things. For example, the audio
CAPTCHA in the official CAPTCHA plugin stopped matching its corresponding
image. Details here:

https://github.com/splitbrain/dokuwiki-plugin-captcha/issues/115#issuecomment-1215007408

show more ...


# c7dab4e8 14-Aug-2022 Andreas Gohr <andi@splitbrain.org>

replace deprecated method calls


# bf8f8509 01-Jan-2022 Andreas Gohr <andi@splitbrain.org>

guard against unset parameters

Many string function will throw a deprecation warning in PHP 8.1 when
null is passed. This adds a few guards in some of our methods (not all,
yet)


# b7c67f83 20-Dec-2021 Andreas Gohr <andi@splitbrain.org>

Merge branch 'pr/3268'

Updated to reflect the discussions in #3268 - removed all IE support

* pr/3268:
Remove HTTP_ACCEPT from auth_browseruid()
Improve auth_browseruid()


# ecad51dd 17-Dec-2021 Andreas Gohr <andi@splitbrain.org>

fix handling of loading auth backend

When a non existing auth backend was configured, the action router ran
into an infinie loop exception. The reason was that the denied action
required a configure

fix handling of loading auth backend

When a non existing auth backend was configured, the action router ran
into an infinie loop exception. The reason was that the denied action
required a configured auth system, but denying access should always
work.

Interestingly the problem did not occur when the auth backend signalled
a failure to load. This was because the auth backend was not properly
deinitialized. This is now done.

To aid debugging similar problems, fatal errors are now logged through
the logging mechanism in the action router

show more ...


# 6cf7b139 06-May-2021 Andreas Gohr <andi@splitbrain.org>

auth_ismanager: fix group check on PHP8

casting and array access specifity seem to differ on PHP8, breaking the
fix in 1525c2281e6bc28f12ce8a59976e68e5a0e788fa


# 1525c228 28-Mar-2021 Anna Dabrowska <dabrowska@cosmocode.de>

Simplify code for checking user groups


# 7f2c7479 28-Mar-2021 Anna Dabrowska <dabrowska@cosmocode.de>

Merge branch 'master' into auth-ismanager-check


# 0058ae75 26-Jan-2021 Damien Regad <dregad@mantisbt.org>

Fix undefined array key warning in auth.php

Got the following warnings on PHP 8.

- Undefined array key "DW<cookie_hash>" in .../inc/auth.php on line 248
- Trying to access array offset on value of

Fix undefined array key warning in auth.php

Got the following warnings on PHP 8.

- Undefined array key "DW<cookie_hash>" in .../inc/auth.php on line 248
- Trying to access array offset on value of type null in .../inc/auth.php on line 248

show more ...


# 66b108d6 28-Oct-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Fix groups match in auth_ismanager and auth_isadmin

Even if a user was passed to the check but no groups, current user's groups were used for the match


# a7e2efd2 13-Oct-2020 Andreas Gohr <andi@splitbrain.org>

replace deprecated function calls #3266


# 9d84533c 28-Sep-2020 AdaKaleh <31895292+adakaleh@users.noreply.github.com>

Remove HTTP_ACCEPT from auth_browseruid()

The Accept header changes based on requested resource type,
so it is not suited for auth_browseruid().


12345678910>>...13