mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-78132-master' of https://github.com/sarjona/moodle
This commit is contained in:
commit
6ee1bac7d8
10 changed files with 89 additions and 81 deletions
|
@ -210,12 +210,6 @@ if ($mform && $mform->is_cancelled()) {
|
|||
$addurl = new moodle_url('/admin/tool/oauth2/issuers.php', $params);
|
||||
echo $renderer->single_button($addurl, get_string('nextcloud_service', 'tool_oauth2'));
|
||||
|
||||
// IMS Open Badges Connect template.
|
||||
$docs = 'admin/tool/oauth2/issuers/imsobv2p1';
|
||||
$params = ['action' => 'edittemplate', 'type' => 'imsobv2p1', 'sesskey' => sesskey(), 'docslink' => $docs];
|
||||
$addurl = new moodle_url('/admin/tool/oauth2/issuers.php', $params);
|
||||
echo $renderer->single_button($addurl, get_string('imsobv2p1_service', 'tool_oauth2'));
|
||||
|
||||
// Linkedin template.
|
||||
$docs = 'admin/tool/oauth2/issuers/linkedin';
|
||||
$params = ['action' => 'edittemplate', 'type' => 'linkedin', 'sesskey' => sesskey(), 'docslink' => $docs];
|
||||
|
|
1
admin/tool/oauth2/lang/en/deprecated.txt
Normal file
1
admin/tool/oauth2/lang/en/deprecated.txt
Normal file
|
@ -0,0 +1 @@
|
|||
imsobv2p1_service,tool_oauth2
|
|
@ -56,7 +56,6 @@ $string['endpointurl_help'] = 'URL for this endpoint. Must use https:// protocol
|
|||
$string['endpointurl'] = 'URL';
|
||||
$string['facebook_service'] = 'Facebook';
|
||||
$string['google_service'] = 'Google';
|
||||
$string['imsobv2p1_service'] = 'Open Badges';
|
||||
$string['issuersetup'] = 'Detailed instructions on configuring the common OAuth 2 services';
|
||||
$string['issuersetuptype'] = 'Detailed instructions on setting up the {$a} OAuth 2 provider';
|
||||
$string['issueralloweddomains_help'] = 'If set, this setting is a comma separated list of domains that logins will be restricted to when using this provider.';
|
||||
|
@ -125,3 +124,6 @@ $string['userfieldinternalfield'] = 'Internal field name';
|
|||
$string['userfieldmappingdeleted'] = 'User field mapping deleted';
|
||||
$string['userfieldmappingsforissuer'] = 'User field mappings for issuer: {$a}';
|
||||
$string['privacy:metadata'] = 'The OAuth 2 services plugin does not store any personal data.';
|
||||
|
||||
// Deprecated since Moodle 4.3.
|
||||
$string['imsobv2p1_service'] = 'Open Badges';
|
||||
|
|
|
@ -142,40 +142,6 @@ Feature: Basic OAuth2 functionality
|
|||
And I should see "Identity issuer deleted"
|
||||
And I should not see "Testing service modified"
|
||||
|
||||
Scenario: Create, edit and delete standard service for Open Badges
|
||||
Given I press "Open Badges"
|
||||
And I should see "Create new service: Open Badges"
|
||||
And I set the following fields to these values:
|
||||
| Client ID | thisistheclientid |
|
||||
| Client secret | supersecret |
|
||||
| Service base URL | https://dc.imsglobal.org/ |
|
||||
When I press "Save changes"
|
||||
Then I should see "Changes saved"
|
||||
And I should see "IMS Global Reference Implementation"
|
||||
And I click on "Edit" "link" in the "IMS Global Reference Implementation" "table_row"
|
||||
And I set the following fields to these values:
|
||||
| Name | IMS Global |
|
||||
And I press "Save changes"
|
||||
And I should see "Changes saved"
|
||||
And I should see "IMS Global"
|
||||
And "Allow services" "icon" should exist in the "IMS Global" "table_row"
|
||||
And "Do not allow login" "icon" should exist in the "IMS Global" "table_row"
|
||||
And "Service discovery successful" "icon" should exist in the "IMS Global" "table_row"
|
||||
And the "src" attribute of "table.admintable th img" "css_element" should contain "IMS-Global-Logo.png"
|
||||
And I click on "Configure endpoints" "link" in the "IMS Global" "table_row"
|
||||
And I should see "https://dc.imsglobal.org/.well-known/badgeconnect.json" in the "discovery_endpoint" "table_row"
|
||||
And I should see "authorization_endpoint"
|
||||
And I navigate to "Server > OAuth 2 services" in site administration
|
||||
And I click on "Configure user field mappings" "link" in the "IMS Global" "table_row"
|
||||
And I should not see "given_name"
|
||||
And I should not see "middle_name"
|
||||
And I navigate to "Server > OAuth 2 services" in site administration
|
||||
And I click on "Delete" "link" in the "IMS Global" "table_row"
|
||||
And I should see "Are you sure you want to delete the identity issuer \"IMS Global\"?"
|
||||
And I press "Continue"
|
||||
And I should see "Identity issuer deleted"
|
||||
And I should not see "IMS Global"
|
||||
|
||||
Scenario: Create, edit and delete valid custom OIDC service
|
||||
Given I press "Custom"
|
||||
And I should see "Create new service: Custom"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue