How do I send login credentials to a 301 redirect page from a wordpress page? - wordpress

I have a wordpress site with a login plugin installed. In the public_html folder, I've added a folder for a page with a chatbot.
I couldn't find a way to bring this chatbot page under the login in the main site and so created a 301 redirect to the chatbot page from an existing page that came under the login. This let me hide the chatbot option on the site from logged out users.
How do I access the user credentials ( specifically the username) in the redirect?
I initially added a short code to extract the username from the URL after login. I was planning to store this in the browser and add a link to the chatbot page where I could then use the stored username. But localStorage didn't accept the chatbot page as the same domain as the WordPress site.
Is there a way to send the username to the redirected page or is there a better way to set up this structure?

Related

Custom login / redirect from WordPress website

I am looking to find a way for customers to log in to their customer account hosted at an external site but to be able to sign up and log in from our customer WordPress website.
e.g. Tom signs into his account using a login box at www.abc123.co.uk
He is then redirected to his customer account panel hosted at www.def456.co.uk
I need customers to be able to do this, as opposed to logging into WordPress site and being taken to a page within the WordPress site.
Is it possible using SSO maybe? I hope someone can help me with solid advice on this.
Many thanks,
Richard.
You can use Login redirect plugin for custom redirect after login.
you can download from: https://wordpress.org/plugins/woo-login-redirect/

WordPress: how to trigger action after I login through external site?

Currently, I am building an SSO for WordPress using Wild Apricot. This SSO allows login through their site and after login, it redirects back to the WP site with login to the site. So, how to detect that action after login?
I tried with "wp_login" action but no luck.
Any help would be much appreciated.
Thanks

Redirect to other subdomain with single login?

I want to know how to open wordpress login page for keycloak authentication. I have to use single-sign-on like google using keycloak& wordpress plugin.

Is there a plugin that requires login to view Frontend WordPress site?

We are creating a multi-vendor marketplace, we need our first vendors only to view the site and upload products to it before we launch it for the public to view. The thing is most plugins like Force Login, takes them to the WP-Admin. We don't want them to see the admin page, just only see the site as a front-end user with no access to see the backend.
Simply > Type Url > Get to a login page Landing Page (like how when you log into FB web there's a login page with info about FB) > Vendors Only can Log in a view the FRONT END only site > When time to launch, login in page comes down and visitors all can view it.
Its default feature of wordpress. do hire some developer if you are not aware of base functionalities.

Login to Wordpress from another website

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.

Resources