Yes, architecturaly using the snippet isn’t great I agree, it mainly proves the library integration works Ok I guess. Ok, so how do we do this at the mo? The default auth scheme seems to be an MD5 password check but there’s no auth plugin for this(that I can see) or extended modUser class, or am I missing something here?
Use MODx, or the cat gets it!
Yes thanks, the snippet does the middle bit of what you say, ie calls the login processor where the plugin intercepts the ’onweblogin’ event and verifies the auth data returned by the server. The rest of it just gets the form data and kicks off the authentication. Be interesting to see your Crowd stuff.
Use MODx, or the cat gets it!
Yes it will, its only prob is that its not integrated, it has its own login box etc. so if you wanted to use say this as well as LDAP or active domain or whatever you would need 2 login areas on your page.
I’m not sure we need extra’s for this, its better to have one login component configured to use whatever authentication backend(s) you want.
If I get time I’ll check this out again tomorrow and post the transport package here if it gets you out of a hole.
Use MODx, or the cat gets it!
OK, transport package and zipped code export attached. I’ve just tested this on revo 2.0.4pl with PHP 5.3 and it works OK(now I’ve tweaked it a bit). Just follow the instructions in the README on install which just basically say put the following in a template or content :
[[OpIdLoginProc]]
[[$OpIdLogin]]
Use MODx, or the cat gets it!
Thank you, I’ll give that a go