Skip to main content

Questions tagged [authentication]

Filter by
Sorted by
Tagged with
51 votes
7 answers
117k views

Can I programmatically login a user without a password?

I'm manually creating users programmatically, and I want to sign in the newly created user. WP makes it easy to access the hashed password, but not the plaintext version. Is there a way to use ...
emersonthis's user avatar
  • 1,357
27 votes
2 answers
39k views

How to: Make JWT-authenticated requests to the Wordpress API

This is not really a question but a guide on how to make authenticated requests to the Wordpress API using JWT. I'm writing this as a reminder to myself and for those who may need some help with the ...
grazdev's user avatar
  • 1,333
5 votes
2 answers
10k views

How to secure or disable the RSS feeds?

I'm trying to set up WordPress as a CMS. As such, I want to disable the feeds since it's mostly a secured site. I've gone through all the Settings pages but found no setting to tweak or disable the ...
Jeroen's user avatar
  • 203
9 votes
1 answer
21k views

Set up WP Authentication from External API

There’s an existing non-WP site, and I need their users to be able to log in on my new Wordpress site with the same credentials they already have. I have been provided with an endpoint (www.example-...
Suika's user avatar
  • 313
8 votes
1 answer
3k 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 ...
MikeTT's user avatar
  • 83
9 votes
2 answers
973 views

Override user authentication with external credentials

I'm working on a site running WordPress along with a vBulletin forum. The user base is registered on vBulletin. I need to allow users to appear logged in on WordPress as well for the sole purpose of ...
Matteo Riva's user avatar
8 votes
2 answers
10k views

why does WordPress need two cookies for auth/login

I can see two cookies: auth and login cookies in wordpress. Why do we need two? I think one is enough.
lovespring's user avatar
8 votes
2 answers
6k 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 ...
Rutwick Gangurde's user avatar
7 votes
5 answers
12k views

WordPress auto login after registration not working

I looked up a bunch of threads trying to figure out how to automatically log a user in after registration, and came up with this. function automatically_log_me_in( $user_id ) { $user = ...
Overcode's user avatar
  • 121
7 votes
3 answers
15k views

Adding extra authentication field in login page

I am going to enhance my WordPress authentication page. My idea is that simply adding an extra field into the login page. The extra field will require user to enter personal identification code (4 to ...
nomall's user avatar
  • 71
4 votes
1 answer
3k 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 ...
Rutwick Gangurde's user avatar
3 votes
1 answer
4k views

How to transition cookies from .subdomain.domain.com to .domain.com with minimal impact on users?

I need to extend the cookies of a subdomain.domain.com to all of the domain.com's subdomains (.domain.com in cookie terms). I am trying to minimize the impact of this transition. It seems that ...
editor's user avatar
  • 1,761
23 votes
4 answers
71k views

How to use OAuth authentication with REST API via CURL commands?

I am trying to use the WordPress Rest Api with authentication to get more data from the API. I have installed the Oauth plugin, rest-api plugin, and gotten API credentials from WP-CLI. I have ...
JediTricks007's user avatar
11 votes
1 answer
11k views

How to Change the Default Home Page for the WordPress Dashboard?

Is it possible to change the Default "Home" admin page when logging into the WordPress Dashboard? I thought about a couple of possibilities... Substitute the content on the Dashboard home page with ...
Michael Ecklund's user avatar
5 votes
3 answers
26k views

authentication issue with rest api - rest_cannot_create

I am using the rest api in Wordpress. For authentication I use the Basic authentication plugin (JSON Basic Authentication) I use this request (from both postman and nodejs): POST /wp-json/wp/v2/...
Ro L's user avatar
  • 99
4 votes
1 answer
11k views

WP REST API: check if user is logged in

The idea is to show or hide some sections of the site in a theme that's fetching all data from the REST API, using AngularJS. I thought this check would help me (nonce is passed as header, as ...
Daniele Squalo's user avatar
3 votes
1 answer
10k views

How to Authenticate WP REST API with JWT Authentication using Fetch API

My goal is to send user comments with a POST request from a server-side Lambda function to my WordPress API. I'm using Gatsby and Netlify. When someone leaves a comment in the comment form of my ...
David Gaskin's user avatar
3 votes
1 answer
579 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 ...
ccot's user avatar
  • 149
3 votes
2 answers
3k views

WordPress as a OAuth Provider

I have just started to read on OAuth as I need to integrate it within a WordPress web app. As per my understanding of OAuth, signed requests are sent between the client and the server. These signed ...
John's user avatar
  • 1,449
3 votes
2 answers
10k views

Can I authenticate with both WooCommerce consumer key and JWT?

I want to authenticate against both: the WooCommerce consumer key, for system queries and JSON Web Tokens (JWT), for user queries I have installed JWT Authentication for WP REST API. But after ...
lofidevops's user avatar
2 votes
1 answer
436 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 ...
Matthew Woodard's user avatar
1 vote
3 answers
2k views

custom REST endpoints and application passwords

I have created a number of RESTful endpoints via a plugin. To date I have only accessed them from the host site. However I would like to access these endpoints from a sub-domaine(2ed Wordpress ...
dsj's user avatar
  • 63
1 vote
0 answers
1k views

How do I authenticate WP users from a chrome extension?

I'm new to WordPress, and I need help. I am writing a chrome extension and intend to use wordpress as the user database. I intend that because I'm using a subscription management WP plugin that keeps ...
colbybhearn's user avatar
1 vote
2 answers
2k views

add action which returns modified value

I want to modify submited password in wp_logon wp_authenticate action. When authenticating, I want to grab submited password, modify it, and pass back to wp_logon So here is an action ...
CBeTJlu4ok's user avatar
0 votes
1 answer
3k views

Authentication for a mobile app connected via wp-rest api?

Building a cordova (HTML/JS) based mobile app (not-native) and I want to use wordpress only as the backend. The idea is that mobile app users will be making requests to the API and custom endpoints ...
gyaani_guy's user avatar
0 votes
2 answers
3k views

Authentication for wordpress website

i am developing android app for website, and have done coding for login page which contains username and password for my website(Job Roller), i have stuck up in validating and authenticating the ...
Divya Jehova's user avatar