It's a good question and one I'm interested in also.
We have a Java web app that uses Spring Security OAuth 2 to manage this, and it's absolutely awful to maintain.
But it sounds like you want something that provides similar functionality.
Is there anything in CF that provides an OAuth server? All I've come across are just client libraries.
>> an email to framework-one+unsubscribe@googlegroups.com
>> <mailto:framework-one+unsub...@googlegroups.com>.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> --
> FW/1 on RIAForge: http://fw1.riaforge.org/
>
> FW/1 on github: http://github.com/framework-one/fw1
>
> FW/1 on Google Groups: http://groups.google.com/group/framework-one
> --- You received this message because you are subscribed to the Google Groups "framework-one" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to framework-one+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
FW/1 on RIAForge: http://fw1.riaforge.org/
FW/1 on github: http://github.com/framework-one/fw1
FW/1 on Google Groups: http://groups.google.com/group/framework-one
---
You received this message because you are subscribed to the Google Groups "framework-one" group.
To unsubscribe from this group and stop receiving emails from it, send an email to framework-one+unsubscribe@googlegroups.com.
index.cfm?action=user.login, or index.cfm?action=patient.getInfo
And in those particular functions, I can use the renderData function to bypass FW/1 view stuff. Right?
As a side note, I just tried this, and I’m getting a 'The renderData method was not found.’ error?
function setupRequest() {
controller( 'security.checkAuthorization' );
}Right. My angular http call is directly addressing login() - it lives in /webroot/controllers/user.cfc. Login, then calls a few services to make things happen.
Regardless - my api controllers should use the getBean function to wire their own dependencies in, right?
Wiring should work for the services it calls though, correct?
Ultimately, I guess I’m just not clear about what constitutes a normal request lifecycle. As in, how/why is calling a controller directly different that a standard use case?
--
--
FW/1 on RIAForge: http://fw1.riaforge.org/
FW/1 on github: http://github.com/framework-one/fw1
FW/1 on Google Groups: http://groups.google.com/group/framework-one
---
You received this message because you are subscribed to the Google Groups "framework-one" group.
To unsubscribe from this group and stop receiving emails from it, send an email to framework-on...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
variables.framework = {trace = false};
On Nov 27, 2014, at 5:44 PM, Puritan Paul <purit...@gmail.com> wrote:
Oh man, I’m super confused. I thought I was following your instructions.
...
method: "post",url: getBackendBase() + "/user/login",
My coldfusion API object is a controller at /webroot/backend/controllers/user.cfc
So, where is my misstep?
On Nov 27, 2014, at 6:52 PM, Sean Corfield <se...@corfield.org> wrote:On Nov 27, 2014, at 5:56 PM, Puritan Paul <purit...@gmail.com> wrote:variables.framework = {trace = false};And which version of FW/1 are you using?
If you’re using 3.0, FW/1 will try to use DI/1 automatically for you, to manage controllers and model. You either need to let it do its thing (and remove your setupApplication() function) or tell it not to use a diEngine internally (set diEngine = "none" in the framework config).If you’re using 2.5 or earlier, you’re fine the way you are (but bear the above in mind if you are migrating to 3.0).On Nov 27, 2014, at 5:44 PM, Puritan Paul <purit...@gmail.com> wrote:Oh man, I’m super confused. I thought I was following your instructions....method: "post",url: getBackendBase() + "/user/login",OK, this is going through FW/1. You said you were accessing login() directly - which you are not.
My coldfusion API object is a controller at /webroot/backend/controllers/user.cfc/webroot/backend/controllers or /xmdmroot/backend/controllers?
So, where is my misstep?At this point, I’m not sure.Where are you service CFCs? In particularly, what is the session service CFC called and where exactly is it?
Sean Corfield -- (904) 302-SEANAn Architect's View -- http://corfield.org/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)