Custom UserCreatedHandlers in Windows Authentication mode

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/26/2009 8:47:33 AM
Gravatar
Total Posts 14

Custom UserCreatedHandlers in Windows Authentication mode

Hi,

I'm testing windows authentication mode and it works perfectly : the new user is automatically created in mojo with the "Authenticated Users" role.
I need to do some custom stuff when a user is automatically created by this way (add roles, modify user custom properties...) : I tried to use the custom UserRegistered and UserSignIn handlers but they only work in form authentication mode.

I found the code in the core where I could do this stuff but I wonder if there's another way to do it, wihtout modifying the core ? Are there some custom config possibilities on the UserCreatedEvent like the "UserRegisteredHandlers" and "UserSignInHandlers" ?

I can't try LDAP/AD authentication for the moment and I wonder if my problem would be the same ? Would a new user automatically be created in this mode ? Do the user need to "manually" sign in ?

I'm using the 2.3.1.9 MSSQL version.

(sorry for the mistakes in my English...)

Bye

Rom1

11/26/2009 9:24:36 AM
Gravatar
Total Posts 18439

Re: Custom UserCreatedHandlers in Windows Authentication mode

Hi,

I think you would get the same result with LDAP. These events are not currently fired when users are created automatically for windows or ldap auth. I will look into trying to implement this for the next release.

Best,

Joe

11/26/2009 11:44:48 AM
Gravatar
Total Posts 14

Re: Custom UserCreatedHandlers in Windows Authentication mode

Thanks for your answer, it would be great if it could be implemented for the next release...

Rom1

11/28/2009 8:03:06 AM
Gravatar
Total Posts 18439

Re: Custom UserCreatedHandlers in Windows Authentication mode

I will do it, but note that only the UserRegisteredEvent will be supported for Windows Authentication, it will not be possible to support UserSignIn because the user is always signed in with Windows Auth and there is no event to use to trigger this.

UserSignInHandlers should already work for LDAP/Active Directory, but I will add support for UserRegistered as this is currently missing for LDAP.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.