-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
148 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
build/ | ||
phpunit.xml | ||
.phpunit.result.cache | ||
.phpunit.cache/ | ||
.phpcs-cache | ||
*.log | ||
codeclimate.json | ||
|
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
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,47 @@ | ||
@xmpp @downgradeProtection | ||
Feature: Authentication with a second XMPP server | ||
|
||
Background: | ||
Given Connection to second XMPP server | ||
And Connection is encrypted by STARTTLS | ||
|
||
@scramsha1 | ||
Scenario: Authenticate with xmpp server through scram-sha-1 authentication with downgrade protection | ||
Given xmpp server supports authentication method "SCRAM-SHA-1" | ||
And Downgrade protection is properly set up | ||
When authenticate with method SCRAM-SHA-1 | ||
And response to challenge for SCRAM-SHA-1 | ||
Then should be authenticated at xmpp server with verification | ||
|
||
@scramsha256 | ||
Scenario: Authenticate with xmpp server through scram-sha-256 authentication with downgrade protection | ||
Given xmpp server supports authentication method "SCRAM-SHA-256" | ||
And Downgrade protection is properly set up | ||
When authenticate with method SCRAM-SHA-256 | ||
And response to challenge for SCRAM-SHA-256 | ||
Then should be authenticated at xmpp server with verification | ||
|
||
@scramsha1 | ||
Scenario: Authenticate with xmpp server through scram-sha-1 authentication with downgrade protection with invalid mechanism | ||
Given xmpp server supports authentication method "SCRAM-SHA-1" | ||
And Downgrade protection is properly set up | ||
And We simulate downgrade protection error by adding an auth mechanism | ||
When authenticate with method SCRAM-SHA-1 | ||
And response to challenge for SCRAM-SHA-1 was invalid | ||
Then Server connection should be closed | ||
|
||
@scramsha1 | ||
Scenario: Authenticate with xmpp server through scram-sha-1 authentication with downgrade protection with invalid channel-binding | ||
Given xmpp server supports authentication method "SCRAM-SHA-1" | ||
And Downgrade protection is properly set up | ||
And We simulate downgrade protection error by adding an unsupported channel-binding | ||
When authenticate with method SCRAM-SHA-1 | ||
And response to challenge for SCRAM-SHA-1 was invalid | ||
Then Server connection should be closed | ||
|
||
@scramsha1 | ||
Scenario: Authenticate with xmpp server through scram-sha-1 authentication with downgrade protection is disabled | ||
Given xmpp server supports authentication method "SCRAM-SHA-1" | ||
When authenticate with method SCRAM-SHA-1 | ||
And response to challenge for SCRAM-SHA-1 | ||
Then should be authenticated at xmpp server with verification |