Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-62316

Creating custom OAuth 2.0 service gets invalidpersistenterror when Service base URL not set

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.2, 3.5
    • 3.4.4, 3.5.1
    • Authentication
    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • MDL-62316_oauth_guess_image_fix
    • Hide

      Steps

      1. Log into the site as an administrator.
      2. Browse to Site administrationServerOAuth 2 services.
      3. Click Create new custom service.
      4. Enter the following fields:
        1. Name: test
        2. Client ID: test
        3. Client secret: 1234
      5. Click Save changes.

      Expected results

      Green message: "Changes saved".

      Show
      Steps Log into the site as an administrator. Browse to Site administration → Server → OAuth 2 services . Click Create new custom service . Enter the following fields: Name : test Client ID : test Client secret : 1234 Click Save changes . Expected results Green message: "Changes saved".

    Description

      Creating a new custom OAuth 2.0 service causes the error message error/invalidpersistenterror to appear.

      Steps to reproduce this:

      1. Log into the site as an administrator.
      2. Browse to Site administrationServerOAuth 2 services.
      3. Click Create new custom service.
      4. Enter the following fields:
        1. Name: test
        2. Client ID: test
        3. Client secret: 1234
      5. Click Save changes.
      6. The red error message error/invalidpersistenterror appears.

      Attachments

        Activity

          People

            leonstr Leon Stringer
            leonstr Leon Stringer
            Mark Nelson Mark Nelson
            David Monllaó David Monllaó
            Janelle Barcega Janelle Barcega
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9/Jul/18

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 8 minutes
                8m