Support » Plugin: WP OAuth Server (OAuth Authentication) » Error “No user information was returned…..”

  • Hi.
    I’am getting the “No user information was returned. The OAuth 2 service may be configured incorrectly.” error when I’am trying to use the OAUTH Login. Maybee it is related to CGI that can not process authorization headers.

    phpinfo() shows:

    PHP Version 7.3.25
    Server API: 	CGI/FastCGI

    WordPress Plugin status:
    Notice - Header 'Authorization Basic' may not work as expected. Visit

    I tryed Solution 2 and 3 with my .htaccess in the root WordPress folder. Still no luck.

    Is there a way to use OAUTH2 with FastCGI?

    I have full control over my moodle installation (My own linux root server), but the worpress page is hosted on ionos. I have no control over the PHP configuration of ionos.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Justin Greer


    Forum Moderator

    Have a look at one of my Youtube videos where I setup WordPress and Moodle from scratch. I actually run into this issue during the video and work through it.

    It may be the user fields are not mapped correctly or not at all.

    Thread Starter robhauer6


    Hi and thank you for your reply. I know the video – did the setup process with it 🙂

    Today, I checked the configuration again.
    – Client ID and Secret match
    – Endpoints: authorization_endpoint, token_endpoint, userinfo_endpoint, end_session_endpoint, revocation_endpoint, introspection_endpoint
    – Field mappings: email > email, nickname > alternatename

    1. Typed login info and clicked the seperate login button at my moodle site.
    2. This brings me (after some seconds) to the wordpress login
    3. Typed in wordpress login info
    4. Redirected to moodle login
    5.Error “No user information was returned. The OAuth 2 service may be configured incorrectly.” appears

    Thread Starter robhauer6


    This redirect sends me from moodle to my wordpress site:


    • This reply was modified 3 months, 3 weeks ago by robhauer6.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.