I'm looking for an advanced CakePHP authentification component or plugin. I've used the core auth plugin and it's fine. I'm however looking for something a bit more advanced that allow to keep track of multiple sessions for the same user. Main features/reasons would be: Ability for user to see active sessions and allow the user to end active sessions. This method is used by facebook and other large sites.
If you do not know of an Auth component that does what I mentioned above do you know of any Auth component that does more than CakePHP's core/built-in component?
I searched the CakePHP bakery section and Googled to find an Auth component but didn't find any.
I don't know if there is something built-in for Auth in CakePHP with that complexity, try this plugin
https://github.com/Theaxiom/SuperAuth
Or check in the official github repository from CakeDC team https://github.com/CakeDC
also try to find something in http://plugins.cakephp.org/
By the way, maybe you can ask directly to core guys on irc ;) go to http://webchat.freenode.net/ and channel cakephp.
Related
I have a Ionic Project for my wordpress site.
I use WP Rest API in my wordpress site.
I just want to know how to login in the app use wordpress user account.
Anybody could tell me more detail about how to do it...thanks!
Here are many Solutions provded by google
http://code.tutsplus.com/tutorials/wp-rest-api-setting-up-and-using-basic-authentication--cms-24762
http://v2.wp-api.org/guide/authentication/
https://www.sitepoint.com/wp-api/
All in all everything depends on what plugin you use. If you really want to use WP REST API, then you will find something in these links.
We would also need to know why you need to login - maybe it's not even needed.
As you might notice the implementation depends on what plugin you use.
I wish to accomplish two simple things with a basic Angularjs application that has both a public and secure area (home page and admin page respectively) that both use a few web api calls.
Login using email address and password
check if user is logged in (has a session) before he can access the admin section (using $routeProvider resolve)
I've searched for hours for something simple but everything that I come across seems still too complex (e.g. http://www.codeproject.com/Articles/784106/AngularJS-Token-Authentication-using-ASP-NET-Web-A).
Are there any examples on how to handle these two steps with basic .Net code?
I have a small entity class (that inherits DBContext).
I call this in my web API controller and there manipulate my data before I send it back to the angularjs front. There is no need for roles. There is only one login which is added manually in the database, the password is securely stored but the site won't be using https. The data that is to be shown is simply for upcoming venues for a couple hundred guests. After the venue the data is deleted.
I have trouble with this since it's been quite a while since I used web api in this fashion (for authentication and validation).
In the end I decided to go with the authentication I found but I now have an issue with implementing it.
Edit: I found a very good example online. That provides source code and has working register and login. Can't find the url just yet.
EDIT
The site that I found is:bitoftech.net
I have installed phpbb3 version in my cakephp application. I want to use same login for phpbb which is used in my cake application. But I am getting issues in it.
I have used this component PhpBB3 APi Bridge but it gives error that cannot redeclare user class. I am using User class in my application and cannot modify it. It seems phpbb also use User class.
After reading on net, I am inserting direct values in phpbb_session table and saving sid cookie but it's not logging in the user to phpbb forum.
I have searched alot but could not find any workable solution. Any help will be highly appreciated.
Thanks in advance.
Summary of the question:
I would like to create a CakePHP based registration and login system offering multiple different gateways such as OpenID, Facebook, Twitter, and so forth. I would like the system to allow a user to associate multiple forms of identification with their account.
After much searching, I am turning up a blank on anything that would allow more than one method of authorization. Cake's authorization system does complicate the matter, so using a tutorial for general PHP is not really effective. Does anyone have a solution, or somewhere I can start from?
Example:
To give a simple example, looking at the StackExchange network: you can login/register using a stack exchange account, Google, Yahoo, Facebook, or OpenID. Once logged in, you can add more of these methods to your account so that you are recognized a multitude of ways. I realize StackExchange probably isn't written in Cake, but it serves as an example.
Thank you!
Original Question
Here's the scoop: I'd like to integrate a simple registration/login system for each of the main services that offer oauth/openid in CakePHP.
Basically, I'd like my users to be able to register the old fashion way (including validation e-mail) or using an existing service to verify themselves. I'd like them to be able to login afterwards using that service, or with a username and password.
Now, I have found extremely in depth plugins for full facebook integration and the like, but the bottom line is that I want to just use this for registration and login at this point, and I would like the experience to be the same regardless of which service they choose (plus, I'd like to understand how it works... because this is all about learning CakePHP after all).
I'd also like them to be able to link other services once the account is created if they so desire. In a nut shell, they're account should be able to be linked to any number of login services, or none at all.
How on earth do I go about this?
Thank you,
James
Looks like there is now a third-party library available using Opauth as detailed on this bakery thread
Here is the CakePHP version's github page:
https://github.com/uzyn/cakephp-opauth
Great question - our CakePHP development studio may be looking at this in the coming months also. I suspect you'll have more luck researching this as a general PHP question and then how you can port that solution into Cake. Definitely post back with anything you discover.
You might find this thread a helpful starting point, although it was posted back in 2010:
Best way to implement Single-Sign-On with all major providers?
I am trying to integrate facebook connect with my cakephp application. i am not sure how facebook conenct works. can some one guide me over this. or provide me links to some tutorial.
is there particular fields that you should have to get the facebook connect to work ?
If you use new auth system try this:
http://daily.siebler.eu/2010/12/integrating-facebook-connect-open-graph-api-into-cakephp/
or if you prefer using a plugin
www.webtechnick.com/blogs/view/223/CakePHP_Configuration_Plugin
A quick google threw up a few links,
http://cutfromthenorth.com/integrating-facebook-connect-with-cakephps-auth-component/
http://forum.developers.facebook.com/viewtopic.php?id=27249
Unfortunatly, some of these are blocked for me at work, but hopefully they'll be handy. It does seem that integrating it by extending the Auth compontent would make the most sense.