I’ve been trying to implement a ColdFusion Oauth2 library onto my ColdBox application for the purpose of allowing users to log in with their Microsoft accounts. This is the Oauth2 library in question.
I have used the following code in a handler for sessions to attempt to instantiate a new component from this Oauth2 library that will allow me to obtain tokens for authorization.
The following are the injections I have made at the top of this handler file:
The following is the constructor method for the ‘microsoft’ component.
When I trigger this event and call the constructor for this ‘microsoft’ object, I get an error telling me that I did not provide the first argument to the constructor, which seems odd to me, as I obviously have.
My question to you all is, am I sane? I am fairly new to ColdBox, so there’s a definite possibility that I’m missing something trivial here. I can provide additional information if needed.