-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move SASL mechanisms to separate files
- Loading branch information
Showing
8 changed files
with
353 additions
and
327 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import SASLMechanism from './sasl.js'; | ||
|
||
// Building SASL callbacks | ||
|
||
export default class SASLAnonymous extends SASLMechanism { | ||
|
||
/** PrivateConstructor: SASLAnonymous | ||
* SASL ANONYMOUS authentication. | ||
*/ | ||
constructor (mechname='ANONYMOUS', isClientFirst=false, priority=20) { | ||
super(mechname, isClientFirst, priority); | ||
} | ||
|
||
test (connection) { // eslint-disable-line class-methods-use-this | ||
return connection.authcid === null; | ||
} | ||
} |
Oops, something went wrong.