mirrored from git://git.moodle.org/moodle.git
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-67802 Authentication: Allow disabling email verification for OAuth
Allow email account verification to be disabled for any Oauth2 provider. Also add clear indications to administrators of the danger of doing do, this is done by an additional form checkbox. This patch also reverts MDL-66598
- Loading branch information
Matt Porritt
committed
Mar 9, 2022
1 parent
bb864ee
commit 6a4801b
Showing
4 changed files
with
53 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@tool @tool_oauth2 @external @javascript | ||
Feature: OAuth2 email verification | ||
In order to make sure administrators understand the ramifications of email verification | ||
As an administrator | ||
I should see email verifications notifications when configuring an Oauth2 provider. | ||
|
||
Background: | ||
Given I log in as "admin" | ||
And I change window size to "large" | ||
And I navigate to "Server > OAuth 2 services" in site administration | ||
|
||
Scenario: Create, edit and delete standard service for Google toggling email verification. | ||
Given I press "Google" | ||
And I should see "Create new service: Google" | ||
And I set the following fields to these values: | ||
| Name | Testing service | | ||
| Client ID | thisistheclientid | | ||
| Client secret | supersecret | | ||
Then I should not see "I understand that disabling email verification can be a security issue" | ||
And I click on "Require email verification" "checkbox" | ||
And I should see "I understand that disabling email verification can be a security issue" | ||
And I click on "I understand that disabling email verification can be a security issue" "checkbox" | ||
And I press "Save changes" | ||
And I should see "Changes saved" | ||
And I click on "Edit" "link" in the "Testing service" "table_row" | ||
And I press "Save changes" | ||
And I should see "Required" | ||
And I click on "Require email verification" "checkbox" | ||
And I press "Save changes" | ||
And I should see "Changes saved" |