pharo-nosql / mongotalk

A Pharo driver for MongoDB
MIT License
19 stars 13 forks source link

Minor refactoring to support SCRAM-SHA256 authentication #89

Closed rydnr closed 3 years ago

rydnr commented 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.