php


Is it possible to use a WordPress session to authenticate to a CakePHP application?


What is the best way to use a successful WordPress sign-in attempt to authenticate to a CakePHP application? I don't want to use password synchronization, if at all possible. I'd prefer to keep all of the user details within the WordPress database tables. I've been rolling this over in my mind this weekend and can't think of a good solution. Any ideas?
Assuming here that you're talking about your own Wordpress install, rather than hosted Wordpress.
If you're WordPress savvy, you could hack the WP authentication mechanism. I bet you could call a Cakephp URL from within the WP auth method, posting the necessary login info to Cakephp. You'd also have to set your Auth mechanisms fields attribute, so that Cake::Auth would know to pull the user information from the Wordpress database.
It could work.
Sometimes it can't be avoided, but hacking the core of an application that you will need to patch regularly is guaranteed to create tons of pain. I would suggest something like OPENID as an alternative.
You can use this Wordpress plug-in:
http://wordpress.org/extend/plugins/openid/
to allow OPENID logins in your Wordpress blog.
Then you need just need to install OPENID support into your CakePHP application authentication routine. Here is a tutorial I found:
http://cakebaker.42dh.com/2008/02/06/new-version-of-the-openid-component/

Related Links

How to get root dir in Symfony2
XML tag wrong format [duplicate]
How server stores session variables created using PHP?
Echo blob in xml
How to get the local IP of the client using php?
How delete/add elements in an array
Multiple ANDs from multiple columns in an Inner Join
Update quantity in database
Getting mysql “connection refused” when trying to connect using PHP
PHP Form - Check if mysql already contains email data
Generating a random salt to be used across devices
PHP Router/Dispatcher, dependency injection, passing dependencies
How can I echo the XML that is sent from a PDF form in a PHP Page?
Include Paypal IPN entire return data to your SQL 'insert into'
How to start a download using php
Multisort array in php

Categories

HOME
artificial-intelligence
powerbi
mc
apple-push-notifications
yaml
focus
bokeh
code-formatting
braintree
risk-management
initialization
odata
magento-2.0
docker-cloud
iptables
apache-kafka-connect
hyperledger
drag-and-drop
supercollider
firebase-database
lc3
sap-fiori
graphdb
web-deployment
asciimath
jqxgrid
coroutine
significance
nullreferenceexception
home
wsf
amazon-mws
maven-surefire-plugin
exchange-server-2010
quartz.net
strophe.js
marquee
history.js
basex
dnsmasq
jsonresult
xenapp
counting
gnu-classpath
jfxtras
textmate2
bluemixtools
spring-restcontroller
slideshow
fiware-wirecloud
yoast
web-inspector
apache-toree
moinmoin
axis
aws-kinesis-firehose
openstack-glance
embedded-v8
android-webservice
mura
gtk#
1010
email-injection
bpms
portal
controllers
e
msg
system.net.mail
conan
dpkg
myfaces
lovefield
srv-record
unhandled
compositetype
modern.ie
ampersand
nssortdescriptor
kognitio-wx2
fat32
directorysearcher
famo.us
n-tier-architecture
configurable-product
datagridcomboboxcolumn
wicket-1.5
xml-signature
commenting
meteor-collections
xmi
armv6
revmob
iirf
insertonsubmit
delphi-xe4
web-frameworks
thejit
jdom
type-safety
nsrangeexception
3des
pyjamas
downgrade
aggregator
self-tracking-entities
.net-services
facebook-fbml
iphone-sdk-3.1.3

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App