Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9235329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:00:12+00:00 2026-06-18T07:00:12+00:00

I started implementing Opauth for CakePHP . It’s awesome that it’s easy to login

  • 0

I started implementing Opauth for CakePHP. It’s awesome that it’s easy to login via Facebook, Twitter…

Question is once Opauth returns login data what would be an efficient way to login the user to CakePHP?

Opauth doesn’t login the user to CakePHP. I think I’m supposed to create a user and save the facebook or other auth info to the db. Is there a plugin that allows me to do this easily?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:00:15+00:00Added an answer on June 18, 2026 at 7:00 am

    One thing I love about CakePHP 2.0 was the way the Auth Plugins work, you can really customize one ore more Authentication methods. At the same time this leaves it to the developer to ‘hook in’ custom Auth Plugins to integrate the solution.

    The plugin page has your answer, almost

    • Goto https://github.com/uzyn/cakephp-opauth#how-to-use

    • check step #6 “After validation, user will be redirected to Router::url('/opauth-complete') with validated auth response data retrievable available at $this->data“

    • after this is complete and you have code like their example public function opauth_complete() {...

    • in this function you will use the $this->data to find your User that was authenticated

    • a method I use at times is to find the user by 2 pieces of information that is provided by Opauth example: username and email

    • you can use something like $loginUser = $this->User->find('first', array('fields'=>array('User.*'), 'conditions'=>array('User.username'=>$this->data['username'], 'User.email'=>$this->data['email']));

    • once you have the user in $loginUser you can just call the $this->Auth->login($loginUser) and you will now have an AuthSession with that user!

    Let me know if you have any questions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Before I started implementing Facebook authentication, my logout controller looked like this: # Kill
I am new to iOS development and I have started implementing the Facebook SDK
I just started implementing Facebook likes on my site. I set it up quickly
I've started implementing a UIScrollView that will contain many thumbnail-sized pictures and will scroll
I have just started implementing ISet 's instead of IList 's in my project
I have started implementing Subscriptions into my app but I cannot get the API
I just started implementing a share functionality but was wondering if its possible to
How do I get started designing and implementing a script interface for my .NET
I'm just getting started defining and implementing external javaScript libraries and I'm a little
Started Googling today to research implementing Zend_Translate in a Zend 1.6.x project i have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.