dokuwiki

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
dokuwiki [15/11/2017 - 10:19] thommiedokuwiki [05/03/2024 - 10:52] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
-====== External authentication from OC through Authpdo ======+====== dokuJClient.jar ====== 
 + 
 +https://github.com/gturri/dokujclient 
 + 
 +====== OAuth2 ====== 
 + 
 +====== External authentication from OC through AuthPDO ======
  
 [[https://www.dokuwiki.org/plugin:authpdo#configuration|https://www.dokuwiki.org/plugin:authpdo#configuration]] [[https://www.dokuwiki.org/plugin:authpdo#configuration|https://www.dokuwiki.org/plugin:authpdo#configuration]]
Zeile 13: Zeile 19:
 </code> </code>
  
-===== OC10SQL Statement to select the data of a single user =====+===== OC 9: Statement to select all groups of a single user ===== 
 + 
 +<code> 
 +SELECT oc_group_user.gid FROM oc_group_user WHERE oc_group_user.uid = 'thommie' 
 +</code> 
 + 
 +===== OC 9: Statement to select all available groups =====
  
 <code> <code>
-SELECT oc_accounts.user_id as 'user', +SELECT gid FROM `oc_groups` WHERE 1
-oc_accounts.display_name as 'name', +
-oc_accounts.email as 'mail', +
-substr(oc_authtoken.password, 3) as 'hash' FROM oc_accounts LEFT JOIN oc_authtoken ON oc_accounts.user_id=oc_authtoken.uid +
-WHERE oc_accounts.user_id LIKE 'xxxx'+
 </code> </code>
  
-===== OC10: in PDO =====+===== OC10: PDO Statement to select the data of a single user =====
  
 <code> <code>
Zeile 29: Zeile 37:
 "oc_accounts.display_name" as "name", "oc_accounts.display_name" as "name",
 "oc_accounts.email" as "mail", "oc_accounts.email" as "mail",
-"substr(oc_authtoken.password, 3)" as "hash" +"substr(oc_users.password, 3)" as "hash" 
-FROM "oc_accounts" LEFT JOIN "oc_authtoken" ON "oc_accounts.user_id=oc_authtoken.uid"+FROM "oc_users" LEFT JOIN "oc_users" ON "oc_accounts.user_id=oc_users.uid"
 WHERE "oc_accounts.user_id" LIKE :user WHERE "oc_accounts.user_id" LIKE :user
 </code> </code>
  
-Owncloud Code hasher:  https://github.com/owncloud/core/blob/master/lib/private/Security/Hasher.php+Owncloud Code hasher: [[https://github.com/owncloud/core/blob/master/lib/private/Security/Hasher.php|https://github.com/owncloud/core/blob/master/lib/private/Security/Hasher.php]]
  
  
  • dokuwiki.1510741181.txt.gz
  • Zuletzt geändert: 05/03/2024 - 10:52
  • (Externe Bearbeitung)