The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
13 views

WP set auth cookie using Ajax is not saved to browser

We are creating an external dashboard that uses Wordpress data, obviously, we use WP REST API v2 We want total separation from the traditional WP Dashboard, but we also want to log in user "behind ...
0
votes
0answers
6 views

How do I establish a connection between Firebase user database and WordPress?

I'm making a Website and an android app. The android app stores its user details i.e., username and password on Firebase database; I'm also making a website and I want a login in the website which ...
0
votes
0answers
59 views

Logged In cookie gets saved but not Auth cookie

I am trying to get WordPress to run on PHP-CGI which I call from my ExpressJS (Node JS) server. After getting some bugs worked out on my end, I finally got the front-end working and I can login and ...
1
vote
0answers
23 views

What is best way to prevent access to Custom Post Types unless authenticated when the post type has an archive and is publicly queryable?

What is best way to prevent access to Custom Post Types unless authenticated when the post type has an archive and is publicly_queryable? Is code below enough to keep the content secure and prevent ...
0
votes
0answers
14 views

How to track all users logged into a site?

I'm working on a project that may have two or three content creators. I would like to be able to notify any of them if the other(s) are logged in. This is to prevent one user from editing a post that ...
0
votes
1answer
38 views

What WP-API authentication method should I use to interact with anonymous / not-logged visitors?

I am going to track number of plays of a video in my site by both visitors and users. Whenever the video starts playing I am using JavaScript for the event handling in the frontend and write to ...
4
votes
1answer
161 views

how to authenticate for the REST API from a plugin and from command line

I want to try the new REST API but I'm not used to this kind of things. Basically, I want to use it to GET custom posts via ajax and show on the website frontend (I'm building an ajax product ...
1
vote
1answer
28 views

How to display username and password after registration

When a new user registers for a new account, WordPress sends an email with the login information as usual. The password is auto-generated and stored securely in the WP database and the registration is ...
2
votes
0answers
131 views

Authenticated request to WP REST API V2 returning 403 error on /users/me [closed]

I am using WP REST API Version 2.0-beta7 together with WP OAuth Server version 3.1.91 After authenticating with the User Credentials grant type, a request to ...
0
votes
1answer
22 views

`authenticate` filter never gets called

I've added and network activated a plugin with this code: add_filter('authenticate', 'my_authenticate', 1000, 2); function my_authenticate($user, $username){ // We never arrive in this function ...
0
votes
0answers
18 views

Is it possible to login in with a token rather than login credentials?

I'm working on an application that connects to a WordPress blog. Right now, the user logins in through the app. But there are times when they need to login to the website. I would like to make it easy ...
0
votes
1answer
16 views

Authenticate WordPress Site through another WordPress installation?

We have two different WordPress websites for our clients. Both have different content that need to be on separate installations. One installation already has all of our users since it existed well ...
4
votes
0answers
60 views

How does ifttt.com authenticate a supplied WordPress account

I'm curious to know how ifttt.com authenticate a supplied WordPress admin login credentials. And after authorization is granted, how does it publish post on our behalf? am curious to know what ...
1
vote
1answer
26 views

How to leverage authentication outside of WordPress?

I have a situation where I would like to authenticate against the WP_users table from outside of WP. Basically I have username and password fields on a static php page outside of wordpress and need ...
0
votes
1answer
440 views

WP-API and Basic Auth returning 403 on POST but not GET

I am using the latest, WP-API and the recommended Basic Auth, to test adding a post to WP from remote. I have Access Headers opened up on the WP side: header("Access-Control-Allow-Origin: *"); ...
0
votes
0answers
19 views

How WordPress handles multisite login?

I want to know how WordPress handles multisite login. How exactly it is saving session/cookies of the authenticate user? Actually, I am facing issue with WordPress Social Login plugin. When I logged ...
2
votes
1answer
123 views

How can I use CURLOPT_USERPWD in wp_remote_post?

I'm trying to setup a proper cURL call in WordPress so am using wp_remote_post(). However, I'm having trouble authenticating the user via wp_remote_post(). Any idea how to convert the following to be ...
0
votes
0answers
25 views

Anonymous sessions in WordPress?

I want to start a session for a non-registered user. The information for the user will be sent to me via a token. The only purpose is to restrict page access if the user is not signed in on the parent ...
0
votes
1answer
87 views

I want login using email not username wordpress front end

For the login, I want to enable the user to use the email instead of the username. This is what I got so far: remove_filter('authenticate', 'wp_authenticate_username_password', 20); function ...
0
votes
0answers
120 views

JWT authentication with WP - Approach

We're using JWT (JSON Web Token) for authenticating our WordPress application with an external service. The current flow we're thinking of is like this: The user signs in on the the parent site The ...
-1
votes
1answer
89 views

Handle POST request sent from an external site for login?

How do I send a $_POST request to my WordPress application from an external website, and handle it here? I want to send user credentials, along with additional login data, to perform an auto-login. ...
0
votes
0answers
64 views

Using JWT to authenticate a user with an external system?

We have a WordPress application which is going to be linked with a parent system. We want to use JWT for authenticating with the parent. The idea is, if the user is not logged in on the parent, he ...
0
votes
1answer
103 views

Users credentials and syncing from third party with WooCommerce

I am trying to build a web store for a client who has already had a mobile app. the mobile app team would like to sync user's password as they update it both on the mobile app and the web store. ...
0
votes
2answers
134 views

My custom page template with is_user_logged_in() does not detect that I'm logged in

I have a custom page template that looks like this: <?php if( is_user_logged_in() ): ?> <?php get_header(); ?> <?php while ( have_posts() ) : the_post(); ?> <?php ...
2
votes
0answers
206 views

How do I use the WP REST API plugin and the OAuth Server plugin to allow for registration and login?

Are there any example projects that do the same? I want to be able to login and register for accounts on my site via the API.
0
votes
0answers
46 views

WordPress Authentication loop using custom plugin

My client has an authentication provider with a good API. I have some classes for checking whether a user is logged in to this provider - it sets an encrypted cookie with the user's email address, I ...
1
vote
1answer
25 views

What's hook to use immediately after a user is authentcated [duplicate]

Does anyone know the add_action() hook to use immediately after a user is successfully authenticated. Hook Test based on @mmm's answer I ran this test from my mu-plugins.php file: function ...
0
votes
0answers
96 views

Google Authenticator does not accept the verification code

I have two-factor authentication enabled on my blog and cannot log in. I get a WordPress verification code, but the number always generates an when I use it. ERROR: Invalid verification code ...
3
votes
1answer
77 views

How do you import members from another system to Wordpress and update passwords so they'll work?

Our current system ( not using Wordpress ) has 1000s of users that we need to port over to Wordpress. The problem we're running into is that the passwords can't stay the same. In our current system ...
0
votes
1answer
99 views

Custom user creation and auto login problem

I am trying to create a custom user and then log them in programatically, whereafter I want to redirect them to a payment page. I have the following code in my theme's functions.php file: function ...
0
votes
1answer
45 views

Password Protected Page + Showing Different Page If Not Authenticated/Authorized

I have a few pages of custom posts that I would like to password protect via the following business rules: I can create a number of passwords to access the page An expiration date can be set for ...
0
votes
0answers
34 views

Multisite LDAP authentication

I'm currently working on using LDAP authentication for my Wordpress 4.2.2 multisite. So far I've come across a couple of plugins but I'd like to map roles using groups in LDAP for each site in ...
1
vote
0answers
28 views

two factor authentication

i am working on a two factor authentication plugin using a third party API. API and WordPress plugin setting page are ready. now i need break default wp login process in two parts like this: This is ...
0
votes
1answer
15 views

Opening protected page with cookie?

I'm working on an app that uses WordPress for user management. After login, the app holds the auth cookie. How can I use that cookie to open a web view of a protected page within the app without ...
0
votes
1answer
56 views

Multisite authorization error 401

I have created a site on my wordpress network , but when I tried to access the site or dashboard it asks for username and password . Though I didn't create any authorization password (http pass) for ...
0
votes
1answer
40 views

Reloading page with a query string upon login for admins

After users with specific roles log in, I would like to reload the current page with a query string added (to trigger a message via JavaScript). How can this be improved? function ...
1
vote
0answers
195 views

How does the “authentication unique keys and salts” feature work?

I'm trying to find some information on how the authentication keys and salts work in WordPress, but unfortunately I wasn't able to find anything useful. All I got is that the keys should be random, ...
0
votes
1answer
379 views

Single sign-on: wp_authenticate_user vs wp_authenticate

I have a wordpress site (lets call it site1) and another site with oauth2 (site2). When a new user is created, a record is created in both site1 and site2 databases with the same email as username, ...
0
votes
0answers
176 views

Custom user authenticate with custom user table and function wp_authenticate

How can I authorize a user using the built-in functions for working with wp cookies. I try to explain. I create custom db table for my users such as: CREATE TABLE IF NOT EXISTS `my_users` ( `ID` ...
0
votes
0answers
37 views

Authenticate Login / Problem when user is created

// check active status (login) add_filter( 'wp_authenticate_user', 'check_active', 30, 3 ); function check_active( $user, $username) { global $current_user,$wpdb; $user_info = get_user_by( 'login', ...
0
votes
0answers
155 views

Site requires login. How to publish login-free RSS feed?

The WordPress site is for internal use only and as such I've set it up so it requires users to be logged in before they can see any of its pages. As a result, my RSS feed url won't work without ...
1
vote
2answers
221 views

Wordpress asking for FTP details when installing plugins

I'm renting a server from DigitalOcean on which I'm running Wordpress inside apache on port 8079. DigitalOcean also only allows one to connect via SFTP. Currently the client I use to do that is ...
0
votes
0answers
40 views

Restrict access to the site with $ _SESSION

I am creating a simple login system that redirects a client for your area . There will contain links to their projects , in other words , clicking , it will be redirected to your website. Example: I ...
4
votes
1answer
271 views

Extend Wordpress (4.x) session and nonce

We've got a small web application that allows users to log in (via WordPress) and remain logged in for a max 15 min session for security purposes. Because most sessions will last longer, I have a ...
0
votes
0answers
43 views

Wordpress Users Authentication through Drupal

I develope a Wordpress Site. A customer of mine had a Drupal installation, where he has installed the following plugin: https://www.drupal.org/project/oauthloginprovider Now I want my WP users to be ...
3
votes
1answer
238 views

Authentication / login mechanism (non wp-admin)

I am developing a theme. I need to have a user login system, that allows users to see all contents of the application and interact with it only after they login (not admin panel login). I need to ...
0
votes
0answers
48 views

WordPress accepting log ins with blank password and incorrect passwords

I'm working on someone's WP site and one of the bugs they have is that as long as the user is registered and exists in the wp_users table they can log in to the site without entering a password or ...
0
votes
1answer
2k views

Custom Login Form - Redirect user to login page if not logged in

I have integrated custom login form as mentioned here and embed this custom login form to a WordPress page, via shortcode [dm_login_form]. After that I have integrated access control plugin here ...
0
votes
0answers
149 views

Can users signup via the new REST API

I am building a mobile app that is a companion to a Wordpress site and will be retrieving and submitting data via a WP plugin built using the new REST API. Users will need to be able to create ...
0
votes
0answers
198 views

Usage of wp_send_json_success and wp_redirect at the same time

I have to send the success response to ajax if user filled the form fields successfully or not on the client side and redirect to the other page which finalize his authorization at the same time on ...