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 https://wp-oauth.com/docs/common-issues/header-authorization-may-not-work-as-expected/

    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

    (@justingreerbbi)

    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

    (@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

    (@robhauer6)

    This redirect sends me from moodle to my wordpress site:

    https:/…..?redirect_to=https……..%2Foauth%2Fauthorize%2F%3Fclient_id%3……….%26response_type%3Dcode%26redirect_uri%3Dhttps……….%252Fadmin%252Foauth2callback.php%26state%3D%252Fauth%252Foauth2%252Flogin.php%253Fwantsurl%253Dhttps%25253A%25252F%25252Fmoodle………25252F%2526sesskey%253DcHeEwL3kcp%2526id%253D2%26scope%3Dopenid%2520profile%2520email

    • 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.