Questions tagged [oauth]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

How can I allow my wordpress site to accept both Basic Auth and Oauth 2.0 via bearer token?

I can fetch entries using Bearer token from one my of my apps if the .htaccess file has the following lines in that specific order: RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) - [E=...
1
vote
1answer
144 views

How to build a plugin that supports authenticated POST requests to the REST API from external servers?

One of the main purposes of an API is to allow the integration of different services/systems. Let's consider that the WordPress REST API can have both public and protected endpoints, where public ...
0
votes
0answers
28 views

WP REST API GET Requests require authentication

Is there a way to require authentication for WP REST API GET Requests? The people I was researching always added a command if the is_user_logged_in(). But it closes these external queries altogether. ...
0
votes
0answers
30 views

Output Redirect Headers on Admin Dashboard Page

Question: Is there a way to output headers with either wp_redirect() or header() when a user is requesting an admin dashboard page with additional query parameters? ex: https://example.com/wp-admin/...
0
votes
0answers
27 views

Using Wordpress JWTs across Wordpress and ASP.NET Core App

So I'm curious as to what your thoughts are on the following: I've been building a Membership-based Web App, with an ASP.NET Core API handling my Windows-specific data processing back-end, and ...
0
votes
0answers
31 views

iframe token flow for SSO OAUTH2

I run a Wordpress site (page A), locally in the company network. A login is required on the site. Our Company SSO via OIDC / OAUTH2 is implemented and working. The intranet also works with our ...
1
vote
1answer
18 views

Redirect URL on OAuth2.0 after switching from http to https

I'm pretty new to Google OAuth 2.0 config and please allow me to ask this question. I have a wordpress site which protocol will be updated to https from http. On the site, it pulls data from google ...
2
votes
1answer
32 views

Should I ask my Twitter plugin users to create their own Twitter App and API Keys to use my plugin?

I am creating my first WordPress plugin. It is a Twitter plugin that uses Twitter API 1.1 and OAuth 2.0 to generate a bearer token and then use that to fetch Tweets from Twitter. The plugin is almost ...
0
votes
0answers
34 views

Redirect URI on Wordpress Admin Submenu Page

I have a submenu page with this url: /wp-admin/options-general.php?page=getty-options This works well but i have a Redirect URI from an api using that url which results in: /wp-admin/options-...
0
votes
0answers
1k views

Test WordPress api with postman

I have some API endpoints. For example: add_action('rest_api_init', function () { register_rest_route(MY_APP_NAMESPACE, '/init', array( 'methods' => 'GET', 'callback' => ...
0
votes
1answer
616 views

WooCommerce OAuth 1.0 + JWT authentication with JS/React

My scenario: JWT auth for user queries, which requires to customize .htaccess to recognize the Bearer Authorization header OAuth 1.0a for system queries, and because of .htaccess customization the ...
1
vote
1answer
558 views

Allow logged in WordPress user to access 3rd party Laravel API via OAuth

I have a unique situation that I'd love some help with if possible: My company manages a lot of WordPress sites. Each site has its own unique set of users (same users throughout all sites, but some ...
1
vote
1answer
2k views

Where to store OAuth 2.0 client id and secret?

I'm building some functionality within one of my WordPress sites that integrates with a third-party API, and that API uses OAuth 2.0. I use both the client ID and secret every time I need a new ...
2
votes
1answer
806 views

$_SESSION variables lost during OAuth callback

When I attempt an OAuth handshake, the first step is a GET call to obtain an access code like so. # Redirect to request authorization code $url = $this->get_authorization_url(); header("Location: ...
0
votes
2answers
1k views

How to use google api for wordpress login

I am using Google OAuth API to create a login system and fetching youtube channel data in Wordpress. I have done to get channel data and email id also get access_token, token_type, expires_in, ...
0
votes
1answer
317 views

Authorizing a plugin to call Google Analytics v4 API on wp_cron

I am building a plugin that will need to access the administrator's analytics account and pull some data on regular intervals, using the WP-Cron mechanism. I have looked at the instructions for ...
0
votes
0answers
96 views

How do WordPress plugins work with oAuth2 APIs?

I am having trouble with getting the redirect part of an oAuth2 authentication process to work correctly within a WordPress plugin. Mainly, the query string that WordPress uses for settings pages is ...
0
votes
1answer
336 views

How to make an other web app can login with wordpress authentication?

I creating an app right now using asp.net mvc 5. My client told me they have a main system created using wordpress. and our new app must be login/auth using that wordpress user or authentication. ...
1
vote
0answers
95 views

OAuth1 empty “authentication” in /wp-json

I'm trying to get a Meteor based app to login to WordPress using WP API OAuth1 plugin on the WordPress side. I've actually gotten pretty far with the standard /oath1 end points, which are all working. ...
2
votes
0answers
547 views

Use Wordpress with a custom OAuth2 provider

I have a fresh Wordpress installation and a working OAuth2 server in Node.js (made using oauth2orize). The only plugins I've been able to find let me use only the well-known OAuth2 endpoints such as ...
3
votes
0answers
839 views

Create a php callback/endpoint for an OAuth script

I am attempting an OAuth call to a 3rd party service but having issues with my callback script. I have a file oauth.php that is within my plugin directory. First question, do I need to go to the url ...
4
votes
1answer
443 views

Implement authentication to an organization oAuth server

Sorry if some parts of this question seem obvious, I'm a newbie at WordPress and this is the first time I tap into oAuth workflow manually (without using a social login plugin). There is this oAuth2 ...
4
votes
0answers
1k views

How to allow users login to WP from external domain and make REST requests

Basically what i want to do is: Use Wordpress as a login system and data storage for web-application on another domain. Make users able to register and perform REST calls from the application. Let ...
1
vote
0answers
869 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 ...
0
votes
1answer
78 views

Connecting a wordpress site to an AngularJS APP

Currently I have a application that needs a blogging system added. The application is built with an AngularJS front-end and a python/Django back end. I wanted to use wordpress as the blogging system ...
1
vote
1answer
236 views

OAuth 2 and saving the authenticated user

I have quite a peculiar scenario. I have one WordPress site (Site A) where I have a large amount of users that have registered and I use the s2member plugin to subscribe these members to allow access ...
1
vote
0answers
560 views

WP - API - OAuth 1.0a Server, How to implement with AngularJS?

I making an Angular WordPress theme and I want to add authentication to it using the WP REST API - OAuth 1.0a Server plugin, which isn't documented not very well. I get oauth_token and ...
2
votes
0answers
2k 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 /wp-json/wp/v2/users?access_token=[...
1
vote
0answers
921 views

WP OAuth Server “The grant type was not specified in the request”

I've installed WP OAuth Server to make an SSO thing with my Wordpress, but I can't get it to work proper. I followed this example on how to set up Single Sign On. I'm stuck at Step 3. I get this error:...
4
votes
2answers
5k 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
2answers
5k views

oAuth2 Authentication in Wordpress using WP OAuth Server and WP API plugins

I am sturggling with how authentication works in my scenario. I have Wordpress site which provides set of custom APIs secured behind oAuth2 Authentication using Wp OAuth Server plugin. I started ...
3
votes
2answers
1k views

WP-API: how do I allow authenticated clients only?

I set up an OAuth client for WP-API following the instructions for WP-API/OAuth1 on github. I was disappointed to realise afterwards that all of the site's content remains available over the API, ...
11
votes
1answer
1k views

Override WordPress user with Oauth2 account

I am trying to set up WordPress as an OAuth2 client. All of our users are stored in our proprietary CMS which is an OAuth provider. We have very little (to no) users in our WordPress database, ...
1
vote
0answers
116 views

OAuth Plugin Produces Error With Yahoo

I've recently installed the OAuth plugin in my Wordpress site. For the most part, it seems to work as expected. Except when trying to login with Yahoo when it produces this error: Warning: strpos() [...
0
votes
1answer
1k views

Email verification feature in wordpress social login plugin

I'm using wordpress social login plugin.. It uses HybridAuth library. Here is a demo of HybridAuth library. The wordpress plugin looks nice. But it generates a random email for most of the social ...