{"id":163,"date":"2011-03-29T09:46:26","date_gmt":"2011-03-29T09:46:26","guid":{"rendered":"http:\/\/songoku.homelinux.com\/wordpress\/?p=163"},"modified":"2011-03-29T09:46:26","modified_gmt":"2011-03-29T09:46:26","slug":"authenticate-external-app-to-joomla-user-database","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=163","title":{"rendered":"Authenticate external app to Joomla user database"},"content":{"rendered":"<p>Hi folks, ifound this in a forum. This is for everyone who&#39;s trying to authenticate a user against the joomla db and does not know to compare the password. This is no code but only a way you can do it:<\/p>\n<p>Example:<\/p>\n<p>\tUsername: <br \/>\n\tpassexample<\/p>\n<p>\tUser entered Plain text password:<br \/>\n\tpassword12<\/p>\n<p>\tLookup username in Joomla database and return password stored in database for the username:<br \/>\n\tbec20914e6738d0150f4af07c0161297:MhMtmNgZRWQgfznO<\/p>\n<p>\tExplode into parts:<br \/>\n\tPassword:<br \/>\n\tbec20914e6738d0150f4af07c0161297<\/p>\n<p>\tSalt:<br \/>\n\tMhMtmNgZRWQgfznO<\/p>\n<p>\tAppend salt to password:<br \/>\n\tpassword12MhMtmNgZRWQgfznO<\/p>\n<p>\tPlain text password with salt appended to it and md5 encrypted result:<br \/>\n\tbec20914e6738d0150f4af07c0161297<\/p>\n<p>\tCompare result to password part from Joomla password. If same good, user is authenticated against Joomla database, if not bad password, try again.<\/p>\n<p>source: <a href=\"http:\/\/forum.joomla.org\/viewtopic.php?p=1368032\" target=\"_blank\">http:\/\/forum.joomla.org\/viewtopic.php?p=1368032<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi folks, ifound this in a forum. This is for everyone who&#39;s trying to authenticate a user against the joomla db and does not know to compare the password. This is no code but only a way you can do it: Example: Username: passexample User entered Plain text password: password12 Lookup username in Joomla database [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=163"}],"version-history":[{"count":0,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/163\/revisions"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}