Authentication woes

30 views
Skip to first unread message

ho...@dealerpeak.com

unread,
Nov 13, 2013, 7:33:05 PM11/13/13
to cfmo...@googlegroups.com
Hi!

I am using ColdSpring to wire up my mongo, but I can't seem to find a convenient way to authenticate on init. Do I really need to authenticate on every request?

Thanks!
Honey

Marc Esher

unread,
Dec 1, 2013, 10:07:44 AM12/1/13
to cfmo...@googlegroups.com
Hey Honey,

Apologies for the late reply.

To me this indicates that mongoclient should be modified to allow for authenticating in init(), probably by simply passing credentials in the mongoconfig object.

Meanwhile, until I get that in place, what about calling authenticate() in your Application.cfc's onApplicationStart() mehod?

Marc


--
You received this message because you are subscribed to the Google Groups "CFMongoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfmongodb+...@googlegroups.com.
To post to this group, send email to cfmo...@googlegroups.com.
Visit this group at http://groups.google.com/group/cfmongodb.
For more options, visit https://groups.google.com/groups/opt_out.

Chris Blackwell

unread,
Dec 3, 2013, 9:35:17 AM12/3/13
to cfmo...@googlegroups.com
You need to use a factory class that handles instantiating cfmongo db, calling authenticate and then returns the authenticated instance.  


Cheers, Chris

Reply all
Reply to author
Forward
0 new messages