Closed rydnr closed 3 years ago
This is a minor refactoring on existing SCRAMSHA1AuthMechanism. Common logic is moved to a new parent class SCRAMSHAAuthMechanism. Descendant classes SCRAMSHA1AuthMechanism and SCRAMSHA256AuthMechanism only customize the hash function to use.
This PR doesn't implement the handshake mentioned in https://github.com/pharo-nosql/mongotalk/issues/87.
This is a minor refactoring on existing SCRAMSHA1AuthMechanism. Common logic is moved to a new parent class SCRAMSHAAuthMechanism. Descendant classes SCRAMSHA1AuthMechanism and SCRAMSHA256AuthMechanism only customize the hash function to use.
This PR doesn't implement the handshake mentioned in https://github.com/pharo-nosql/mongotalk/issues/87.