Announcement

#1 2021-01-28 18:54:18

Seeker
Member
2020-09-15
17

bcrypt external login

Hello/Hi/Greetings,

I'd like to have Piwigo use Xenforo user and groups for login. I see a few members have done this with Wordpress. Xenforo uses bcrypt which I believe is the same as Piwigo.

Currently I'm using Apache basic auth to protect Piwigo with the following sql (below) to Xenforo.

Is there an easy way to make a bridge? Or can someone walk me through it? Or is there a developer that will do this for a fee?

AuthType Basic
AuthName "Piwigo Portal"
AuthBasicProvider socache dbd
AuthnCacheProvideFor dbd
#AuthnCacheContext directory
AuthnCacheContext data
AuthDBDUserPWQuery "select substring(data, 23, length(data) - 25) from xf_user_authenticate xua join xf_user xu on xua.user_id = xu.user_id where xu.username = %s AND xua.scheme_class = 'XF:Core12'"
Require dbd-group allowed
AuthzDBDQuery "select 'allowed' from xf_user where (find_in_set('3', secondary_group_ids) OR find_in_set('4', secondary_group_ids) OR find_in_set('47', secondary_group_ids) OR find_in_set('49', secondary_group_ids) OR find_in_set('50', secondary_group_ids)) AND username = %s"



    Piwigo 11.1.0 Check for upgrade
    Operating system: Linux
    PHP: 7.3.19-1~deb10u1 (Show info) [2021-01-28 12:45:10]
    MySQL: 5.5.5-10.3.27-MariaDB-0+deb10u1 [2021-01-28 12:45:10]
    Graphics Library: ImageMagick 6.9.10-23


Piwigo URL: [spam redacted]

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact