Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-6308

OpenID Connect doesn't work with Google oAuth 2.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Inactive
    • Icon: Minor Minor
    • None
    • 2.9.4
    • Set: Office365
    • auth_oidc 29.0.0.13
    • MOODLE_29_STABLE

      Attempting to setup OpenID Connect plugin for Google oAuth 2.0 (which is OpenID certified), I was unable to do this due to the following error on Google's side -

      400. That’s an error.
      Error: invalid_request
      Missing required parameter: redirect_uri
      Learn more
      Request Details
      resource=https://www.googleapis.com/oauth2/userinfo
      scope=openid profile email
      response_type=code
      state=Vd2WqGYiKpMlEh1
      nonce=N572bf97655e84
      client_id=361112190504-80lvin0ne7oug13cc7ug47hf7d0bqtod.apps.googleusercontent.com
      response_mode=form_post

      As can be seen the request details, the plugin fails to pass in the redirect_uri. Google seems to expect this paramenter to passed in the URL (as occurs with oAuth2 Mooodle plugin which works with Google). The redirect_uri is specified in the settings as being https://sitename/auth/oidc/, but this is not passed in the URL by this plugin.

      Can we get this parameter added to the URL to create compatibility with Google's OpenID interface?

            jamesmcq24 James McQuillan
            hugh2323 Lloyd Powell
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.