Login to Wordpress from another website - wordpress

I have a Simple PHP Website at www.example.com and I have a wordpress blog at www.example.com/blog/ and both of them have user login pages. I would like the user to logged into the wordpress blog as well when the user logs in using www.example.com login.
Please help

The proper way of doing it is
Create a wordpress plugin
Use the plugin to listen for the wordpress engine initiation
On initiation check for the user session in the browser or in your external application
If a user session is found (assuming your usernames and emails are unique for both systems, so that a single registration is allowed with it) check for a wordpress user with matching username or email
If a wpuser is found, set the current user as that
If no user is found create a new wordpress user and set him as the current user
There are neat API's available for doing this in wordpress. We have used it to integrate wordpress with many external websites, CMS and Social networking sites like Elgg.

You should have a look at the bbPress Integration plugin that does the same thing to integrate WordPress and BBPress forums.
Basically you will simply need to create some cookies on the user browser crypted with the appropriate secret keys.

Related

how the wordpress login works

I have a WordPress-based site and also have other sites that don't use frameworks. I have a desire to use my WordPress account and password to log in to my other sites.
I know that WordPress uses phpass to encrypt and verify passwords. I have been able to use phpass on other sites to authenticate the login stored in the WordPress database.
I want to know, how can I log in with my WordPress account when I log in to other websites? In other words, how does WordPress implement remembering the login state?

Wordpress authentication for a custom page with access to plugin data

First, I am a Wordpress Noob. My company builds custom data dashboards. Our client wants to integrate our dashboard into Wordpress. They use plugins, mainly Gravity forms and WooCommerce, from which the dashboard needs to retrieve data.
The dashboard will be build as a custom page (HTML/JS/CSS) and we plan to served it as a Wordpress static item (like: https://qodeinteractive.com/magazine/add-custom-html-page-to-wordpress/).
Ideally, it would work like this:
the clients' user logs in into Wordpress.
Within the Wordpress environment the user can click a button to open our dashboard.
The dashboard fetches the data from Wordpress / a Wordpress API and displays it.
The complexity starts with the last step, how can we access the data from Wordpress/Gravity forms/WooCommerce. I would prefer it, if the user does not have to login separately into our dashboard, but that the credentials provided in Wordpress can be used.
There are API's available for Wordpress/Ggravity forms/WooCommerce, but I am unsure about the authentication part.
I found something about cookie authentication (https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/#cookie-authentication), but I am not sure if this would work or how this works. The information is related to PHP, while we will be using HTML/JS.
Are there other options available?
I know it is a broad question, but I hope to get some pointers to how to deal with this.

wordpress user registration/profile plugin

I am trying to make a wordpress site which will allow users to register by themselves and log into the site and have a profile. IS there such a plugin that will allow me to incorporate this into my site? I have looked around and being that I have very little experience with making sites/wordpress I have decided to ask some experts.
I know with wordpress you get a "blog" sort of site, but i'm hoping that if the plug-in i'm looking for exists then I can make my site to look different. The reason I am asking for each individual member to have their own "profile page/ private page" is because I want to be able to upload data to their specific pages and they should be able to see the data without seeing others'.
Thanks for any and all help you can provide me.
If I can't find a suitable solution, I will try to build a site with joomla, I had gone with wordpress because I had heard that it was easier to use.
Yeah, There is one plugin to do all these in wordpress. Plugin name: Profile Builder - front-end user registration, login and edit profile
plugin Link: http://wordpress.org/plugins/profile-builder/
Yeah, There is one plugin to do with all the things which you want. Plugin Name : "Theme My Login"
Plugin Features :
Your registration, log in, and password recovery pages will all match
the rest of your website
Includes a customizable widget to login anywhere from your blog
Redirect users upon log in and log out based upon their role
Show gravatar to users who are logged in.
Assign custom links to users who are logged in based on their role
Customize user emails for registration and/or password recovery
Send user emails in HTML format
Allow users to set their own password upon registration
Require users to be approved or confirm e-mail address upon
registration
Theme user profiles
Please refer the following Location :
Theme My Login

Wordpress change user to admin

I am building a wp site and am just about finished. I set up the site with the admin as myself, my email address and avatar. Problem is I need to deliver it with the client as the admin using his name, email and avatar so it is his avatar that shows up as the agent.
Can someone point me to the correct documentation that has dealt with this before or explain the best way to do this ?
Update:
I have added the client as an administrator but I still show up as the agent of the site (super user). This is a real estate site.
Would this be specific to the template I am using (agentpress 2.0) or some sort of setting in all wp sites ?
If you are do it via PHP Read this else you can add a user with admin privileges.

How to implement SSO with moodle and wordpress blog?

I have moodle installation and wordpress blog. When user logged on to moodle want to access wordpress blog. i want to implement sso with moodle(1.9.7) and wordpress(3.0.1) blog.
I am using External DB authentication plugin.
I want to access my wordpress blog through my Moodle database. I did all given steps at Authenticate Users From Moodle Into WordPress MU. Right now, admin is able to sign in both moodle and wordpress using my moodle database, But other users in facing "wrong user name or password error".
Kindly advice
Thanks in advance.
You can login because you changed you admin password to match on each system.
Your other users can't login because they are in effect using 2 separate accounts.
Your users on Moodle will need their authentication changing in their profile to "External Database", at present they are most likely set to "manual".
Try editing a user profile and change the authentication method to "External Database" then get the user to login using their Wordpress login details.
Should fix it.
If it works, change all the other accounts to the same setting.
Regards,
Lewis

Resources