← Back to team overview

mahara-contributors team mailing list archive

[Bug 1947533] [NEW] Only display web services groups with OAuth1/OAuth2 in 'External apps'

 

Public bug reported:

This is an issue discovered as part of bug #1947529 and slightly related
to bug #1947529.

At the moment, all web services groups that are set up in the web
services configuration are displayed on the 'External apps' screen even
if they aren't using OAuth1 or OAuth2. The 'External apps' screen should
only display those apps that can actually be used for the intended
purpose.

Therefore, we need a new Yes/No switch on the 'Edit' screen for a
service group to indicate whether it can be displayed in the drop-down
menu for 'External apps'.

This should go in the first section on the page
/webservice/admin/serviceconfig.php?service=ID

right below 'Short name' with the label 'External app'.

To replicate the issue:

1. Enable web services on your site.
2. Set up a new web services group in Admin menu -> Web services -> Configuration -> Manage services group -> Add a new one.
3. Enable it via the 'Edit' button and add one web service call to it.
4. Save.
5. Go to Admin menu -> Web services -> External apps.

Expected result: Only LTI, LTI Advantage, and Mahara / Moodle assignment
submission are potential options.

Actual result: The newly created web services group shows up, too.

What should happen when the issue is fixed:

1. Enable web services on your site.
2. Set up a new web services group 'Auth' in Admin menu -> Web services -> Configuration -> Manage services group -> Add a new one.
3. Enable it via the 'Edit' button.
4. There is a new option 'External app' with a Yes/No switch. Switch this to 'Yes'
5. Add one web service call to it and save the form.
5. Set up a new web services group 'Not auth' in Admin menu -> Web services -> Configuration -> Manage services group -> Add a new one.
6. Enable it via the 'Edit' button.
7. There is a new option 'External app' with a Yes/No switch. Leave this set to 'No'.
8. Add one web service call to it and save the form.
9. Go to Admin menu -> Web services -> External apps.

Expected result: The web services group 'Auth' is displayed in the drop-
down menu, but 'Not auth' is not shown.

This fix should be followed by bug #1947528

** Affects: mahara
     Importance: Wishlist
         Status: Confirmed

** Description changed:

- This is an issue discovered as part of bug 1947529.
+ This is an issue discovered as part of bug 1947529 and slightly related
+ to bug #1947529.
  
  At the moment, all web services groups that are set up in the web
  services configuration are displayed on the 'External apps' screen even
  if they aren't using OAuth1 or OAuth2. The 'External apps' screen should
  only display those apps that can actually be used for the intended
  purpose.
  
  Therefore, we need a new Yes/No switch on the 'Edit' screen for a
  service group to indicate whether it can be displayed in the drop-down
  menu for 'External apps'.
  
  This should go in the first section on the page
  /webservice/admin/serviceconfig.php?service=ID
  
  right below 'Short name' with the label 'External app'.
  
  To replicate the issue:
  
  1. Enable web services on your site.
  2. Set up a new web services group in Admin menu -> Web services -> Configuration -> Manage services group -> Add a new one.
  3. Enable it via the 'Edit' button and add one web service call to it.
  4. Save.
  5. Go to Admin menu -> Web services -> External apps.
  
  Expected result: Only LTI, LTI Advantage, and Mahara / Moodle assignment
  submission are potential options.
  
  Actual result: The newly created web services group shows up, too.
  
  What should happen when the issue is fixed:
  
  1. Enable web services on your site.
  2. Set up a new web services group 'Auth' in Admin menu -> Web services -> Configuration -> Manage services group -> Add a new one.
  3. Enable it via the 'Edit' button.
  4. There is a new option 'External app' with a Yes/No switch. Switch this to 'Yes'
  5. Add one web service call to it and save the form.
  5. Set up a new web services group 'Not auth' in Admin menu -> Web services -> Configuration -> Manage services group -> Add a new one.
  6. Enable it via the 'Edit' button.
  7. There is a new option 'External app' with a Yes/No switch. Leave this set to 'No'.
  8. Add one web service call to it and save the form.
  9. Go to Admin menu -> Web services -> External apps.
  
  Expected result: The web services group 'Auth' is displayed in the drop-
  down menu, but 'Not auth' is not shown.

** Description changed:

- This is an issue discovered as part of bug 1947529 and slightly related
+ This is an issue discovered as part of bug #1947529 and slightly related
  to bug #1947529.
  
  At the moment, all web services groups that are set up in the web
  services configuration are displayed on the 'External apps' screen even
  if they aren't using OAuth1 or OAuth2. The 'External apps' screen should
  only display those apps that can actually be used for the intended
  purpose.
  
  Therefore, we need a new Yes/No switch on the 'Edit' screen for a
  service group to indicate whether it can be displayed in the drop-down
  menu for 'External apps'.
  
  This should go in the first section on the page
  /webservice/admin/serviceconfig.php?service=ID
  
  right below 'Short name' with the label 'External app'.
  
  To replicate the issue:
  
  1. Enable web services on your site.
  2. Set up a new web services group in Admin menu -> Web services -> Configuration -> Manage services group -> Add a new one.
  3. Enable it via the 'Edit' button and add one web service call to it.
  4. Save.
  5. Go to Admin menu -> Web services -> External apps.
  
  Expected result: Only LTI, LTI Advantage, and Mahara / Moodle assignment
  submission are potential options.
  
  Actual result: The newly created web services group shows up, too.
  
  What should happen when the issue is fixed:
  
  1. Enable web services on your site.
  2. Set up a new web services group 'Auth' in Admin menu -> Web services -> Configuration -> Manage services group -> Add a new one.
  3. Enable it via the 'Edit' button.
  4. There is a new option 'External app' with a Yes/No switch. Switch this to 'Yes'
  5. Add one web service call to it and save the form.
  5. Set up a new web services group 'Not auth' in Admin menu -> Web services -> Configuration -> Manage services group -> Add a new one.
  6. Enable it via the 'Edit' button.
  7. There is a new option 'External app' with a Yes/No switch. Leave this set to 'No'.
  8. Add one web service call to it and save the form.
  9. Go to Admin menu -> Web services -> External apps.
  
  Expected result: The web services group 'Auth' is displayed in the drop-
  down menu, but 'Not auth' is not shown.
+ 
+ This fix should be followed by bug #1947528

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1947533

Title:
  Only display web services groups with OAuth1/OAuth2 in 'External apps'

Status in Mahara:
  Confirmed

Bug description:
  This is an issue discovered as part of bug #1947529 and slightly
  related to bug #1947529.

  At the moment, all web services groups that are set up in the web
  services configuration are displayed on the 'External apps' screen
  even if they aren't using OAuth1 or OAuth2. The 'External apps' screen
  should only display those apps that can actually be used for the
  intended purpose.

  Therefore, we need a new Yes/No switch on the 'Edit' screen for a
  service group to indicate whether it can be displayed in the drop-down
  menu for 'External apps'.

  This should go in the first section on the page
  /webservice/admin/serviceconfig.php?service=ID

  right below 'Short name' with the label 'External app'.

  To replicate the issue:

  1. Enable web services on your site.
  2. Set up a new web services group in Admin menu -> Web services -> Configuration -> Manage services group -> Add a new one.
  3. Enable it via the 'Edit' button and add one web service call to it.
  4. Save.
  5. Go to Admin menu -> Web services -> External apps.

  Expected result: Only LTI, LTI Advantage, and Mahara / Moodle
  assignment submission are potential options.

  Actual result: The newly created web services group shows up, too.

  What should happen when the issue is fixed:

  1. Enable web services on your site.
  2. Set up a new web services group 'Auth' in Admin menu -> Web services -> Configuration -> Manage services group -> Add a new one.
  3. Enable it via the 'Edit' button.
  4. There is a new option 'External app' with a Yes/No switch. Switch this to 'Yes'
  5. Add one web service call to it and save the form.
  5. Set up a new web services group 'Not auth' in Admin menu -> Web services -> Configuration -> Manage services group -> Add a new one.
  6. Enable it via the 'Edit' button.
  7. There is a new option 'External app' with a Yes/No switch. Leave this set to 'No'.
  8. Add one web service call to it and save the form.
  9. Go to Admin menu -> Web services -> External apps.

  Expected result: The web services group 'Auth' is displayed in the
  drop-down menu, but 'Not auth' is not shown.

  This fix should be followed by bug #1947528

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1947533/+subscriptions



Follow ups