Norconex / collector-core

Collector-related code shared between different collector implementations
http://www.norconex.com/collectors/collector-core/
Apache License 2.0
7 stars 15 forks source link

Support MongoDB SCRAM-SHA-1 authentication mechanism, as well as CR #9

Closed danizen closed 7 years ago

danizen commented 7 years ago

Paul,

Finally - a clear bug/feature request. Our mongodb installation is version 3.2.10, and thus its default authentication mechanism is SCRAM-SHA-1. In the buildMongoDB static method, com.norconex.collector.core.data.store.impl.mongo.MongoCrawlDataStore calls MongoCredential.createMongoCRCredential to create the older authentication mechanism.

I'll probably implement this and contribute back, but if you get there first, no problems.

essiembre commented 7 years ago

I merged your pull-request https://github.com/Norconex/collector-core/pull/10. I also took the time to upgrade the MongoDB related code to use the 3.x API classes instead. I made a new snapshot release of the HTTP Collector that uses the new collector core version with your credential additions.

Why all was good in my own tests, I would appreciate if you can confirm this new version works for you.

danizen commented 7 years ago

I will check and let you know.

danizen commented 7 years ago

Works for me with a download of 2.7.1-SNAPSHOT. I see that it contains norconex-collector-core-1.8.1-SNAPSHOT, and that this is also published to oss.sonatype.org snapshots.

essiembre commented 7 years ago

Thanks for confirming.