简体   繁体   中英

how to login in drupal from php external site

I'm new in drupal I want to login to my drupal site from a php site, I'm using the service and oauth module. Already tried login with session authentication and returns the ssesion id and name what I don't know is how to redirect to the drupal site logged. I also try the 3 legged authentication using my own consummer but if the user is not logged in drupal it ask to login and then do the token authentication so I'm stuck in how to login the user before the 3 legged authentication. Thank for your help in advance.

Install services module in Drupal. Configure the same to expose the login service. Once enabled you can call it in your php application. Refer this link for example.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM