forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-78132 badges: move apiBase consumption to backpack
The logic to create the issuer has been moved to the backpack form in order to improve the workflow and update the apiBase with the proper value comming from the badgeconnect.json manifest file. So, as part of this change in the workflow, the following changes has been also implemented (to make the UI easier for users): - The "Open Badges" oAuth issuer button has been removed from the "OAuth Services" admin page. As they are created/updated when a backpack is saved, this button is not required anymore. - The "OAuth2 services" and "Backpack API URL" parameters have been removed from the Manage backpacks form, because they are created on the fly each time the backpack is saved.
- Loading branch information
1 parent
2e1c6fd
commit 03e4afd
Showing
6 changed files
with
60 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,12 +120,15 @@ Feature: Backpack badges | |
And I log in as "admin" | ||
And I navigate to "Badges > Manage backpacks" in site administration | ||
When I press "Add a new backpack" | ||
And I set the field "backpackapiurl" to "http://backpackapiurl.cat" | ||
And I set the field "apiversion" to "2" | ||
And I set the field "backpackweburl" to "aaa" | ||
And I press "Save changes" | ||
And I should see "Invalid URL" | ||
And I set the field "backpackweburl" to "http://backpackweburl.cat" | ||
And I press "Save changes" | ||
And I should see "You must supply a value here" | ||
And I set the field "backpackapiurl" to "http://backpackapiurl.cat" | ||
And I press "Save changes" | ||
Then I should see "http://backpackweburl.cat" | ||
And "Delete" "icon" should exist in the "http://backpackweburl.cat" "table_row" | ||
And "Edit settings" "icon" should exist in the "http://backpackweburl.cat" "table_row" | ||
|
@@ -163,9 +166,9 @@ Feature: Backpack badges | |
And I log in as "admin" | ||
And I navigate to "Badges > Manage backpacks" in site administration | ||
When I press "Add a new backpack" | ||
And I set the field "backpackapiurl" to "http://backpackapiurl.cat" | ||
And I set the field "backpackweburl" to "http://backpackweburl.cat" | ||
And I set the field "apiversion" to "2.1" | ||
And I set the field "backpackweburl" to "http://backpackweburl.cat" | ||
And I should not see "Backpack API URL" | ||
Then "Include authentication details with the backpack" "checkbox" should not be visible | ||
And I should not see "Badge issuer email address" | ||
And I should not see "Badge issuer password" | ||
|
@@ -180,6 +183,7 @@ Feature: Backpack badges | |
And I should see "Badge issuer password" | ||
And I set the field "backpackemail" to "[email protected]" | ||
And I set the field "password" to "123456" | ||
And I set the field "backpackapiurl" to "http://backpackapiurl.cat" | ||
And I press "Save changes" | ||
And I click on "Edit" "link" in the "http://backpackweburl.cat" "table_row" | ||
And the field "Include authentication details with the backpack" matches value "1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters