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

Unexpected error when logging in using Clever SSO

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-77827-401
    • MDL-77827-master
    • Hide

      Initial setup

      1. A Moodle site is publicly available, you can use ngrok for that.
      2. Go to https://apps.clever.com/signup and create a developer account
      3. Click on Settings in the left-hand menu of the developer dashboard
        1. Copy/note the Client ID and Secret for configuring Clever in Moodle later
        2. Configure Instant Login settings:
        3. Add Redirect URL under OAuth Settings: {Your Moodle baseurl}/admin/oauth2callback.php
        4. Add Supported User Types under Additional Settings: Students, Teachers
      4. Click on Home in the left-hand menu of the developer dashboard
        1. Under Your Districts, click on your district (will be of the form "#DEMO {Application name} (Dev) Sandbox")
        2. Scroll down and find/copy the Portal URL under Clever SSO Info
      5. Download and extract the default sandbox user list from Clever.
        • We will use the information in students.csv and teachers.csv to log in later in the Portal URL.
          • For students, the username and password are both the "Student_number".
          • For teachers, the username and password are both the "Teacher_number".
      6. Configure the Clever OAuth2 provider in Moodle:
        1. Enable OAuth2 authentication plugin (Site administration > plugins > manage authentication)
        2. Create / configure Clever OAuth2 using client ID and secret (Site administration -> Server -> OAuth 2 services)
          1. Click on the Clever button
          2. Populate ID and secret values
          3. Untick "Require email verification"
          4. Tick "I understand that disabling email verification can be a security issue."
          5. Save changes

      Testing

      1. Open an incognito browser window
      2. Open the link to the Portal URL for your Clever dev application (see step 4.2 in prereqs above)
      3. Log in to the portal as a student user account indicated in the downloaded CSV file.
      4. In the same window, navigate to your Moodle login page
      5. Click on the Clever login button
      6. Verify that you are able to log in to Moodle with the Clever student account.
      7. Verify that you will not see any debug message.
      8. Repeat the above steps for the Clever teacher user and confirm that you are able to log in to Moodle with the Clever teacher account.
      Show
      Initial setup A Moodle site is publicly available, you can use ngrok for that. Go to https://apps.clever.com/signup and create a developer account Click on Settings in the left-hand menu of the developer dashboard Copy/note the Client ID and Secret for configuring Clever in Moodle later Configure Instant Login settings: Add Redirect URL under OAuth Settings: {Your Moodle baseurl}/admin/oauth2callback.php Add Supported User Types under Additional Settings: Students, Teachers Click on Home in the left-hand menu of the developer dashboard Under Your Districts , click on your district (will be of the form "#DEMO {Application name} (Dev) Sandbox") Scroll down and find/copy the Portal URL under Clever SSO Info Download and extract the default sandbox user list from Clever . We will use the information in students.csv and teachers.csv to log in later in the Portal URL . For students, the username and password are both the " Student_number ". For teachers, the username and password are both the " Teacher_number ". Configure the Clever OAuth2 provider in Moodle: Enable OAuth2 authentication plugin (Site administration > plugins > manage authentication) Create / configure Clever OAuth2 using client ID and secret (Site administration -> Server -> OAuth 2 services) Click on the Clever button Populate ID and secret values Untick " Require email verification " Tick " I understand that disabling email verification can be a security issue. " Save changes Testing Open an incognito browser window Open the link to the Portal URL for your Clever dev application (see step 4.2 in prereqs above) Log in to the portal as a student user account indicated in the downloaded CSV file. In the same window, navigate to your Moodle login page Click on the Clever login button Verify that you are able to log in to Moodle with the Clever student account. Verify that you will not see any debug message. Repeat the above steps for the Clever teacher user and confirm that you are able to log in to Moodle with the Clever teacher account.
    • 2
    • Team Hedgehog 2023 Sprint 1.4

      We should check what data is not compatible with json encoding

      Steps to reproduce

      Prerequisites/Setup

      1. A moodle site publicly available, you can use ngrok for that.
      2. Go to https://apps.clever.com/signup and create a developer account
      3. Click on Settings in the left-hand menu of the developer dashboard
        1. Copy/note the Client ID and Secret for configuring Clever in Moodle later
        2. Configure Instant Login settings:
          • Add Redirect URL under OAuth Settings: {Your Moodle baseurl}/admin/oauth2callback.php
          • Add Supported User Types under Additional Settings: Students, Teachers
      1. Click on Home in the left-hand menu of the developer dashboard
        1. Under Your Districts, click on your district (will be of the form "#DEMO {Application name} (Dev) Sandbox")
        2. Scroll down and find/copy the Portal URL under Clever SSO Info
      2. Download and extract the default sandbox user list from Clever.
        • We will use the information in students.csv and teachers.csv to log in later in the Portal URL.
          • For students, the username and password are both the "Student_number".
          • For teachers, the username and password are both the "Teacher_number".
      3. Configure the Clever OAuth2 provider in Moodle:
        1. Enable OAuth2 authentication plugin (Site administration > plugins > manage authentication)
        2. Create / configure Clever OAuth2 using client ID and secret (Site administration -> Server -> OAuth 2 services)
          1. Click on the Clever button
          2. Populate ID and secret values
          3. Untick "Require email verification"
          4. Tick "I understand that disabling email verification can be a security issue."
          5. Save changes

      Test case with stable master

      1. Open an incognito browser window
      2. Open the link to the Portal URL for your Clever dev application (see step 4.2 in prereqs above)
      3. Log in to the portal as a student user account indicated in the downloaded CSV file.
      4. In the same window, navigate to your Moodle login page
      5. Click on the Clever login button
      6. Confirm that you are able to log in to Moodle with the Clever student account.
      7. Repeat the above steps for the Clever teacher user and confirm that you are able to log in to Moodle with the Clever teacher account.

        1. error.png
          error.png
          157 kB
        2. MDL-77827.png
          MDL-77827.png
          300 kB

            huongn@moodle.com Huong Nguyen
            stevani.andolo@moodle.com Stevani Andolo
            David Woloszyn David Woloszyn
            Ilya Tregubov Ilya Tregubov
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 13 minutes
                1d 13m

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