Sure, it does! https://github.com/isisaddons/isis-module-security/blob/master/webapp/src/main/java/org/isisaddons/module/security/webapp/AppUserRegistrationService.java#L19
Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sat, Feb 14, 2015 at 4:03 PM, James Agada <[email protected]> wrote: > Funny enough, the security module demo also does not implement the > service, at least the demo app i got from github. > > On Feb 14, 2015, at 2:53 PM, Martin Grigorov <[email protected]> > wrote: > > > > OK. I see. > > > > This is what I explained yesterday with > > http://markmail.org/message/rnngtsbhhgupulob. > > > > Just having isis-module-security-dom in the classpath is not enough. You > > need to create your own service that extends from > > SecurityModuleAppUserRegistrationServiceAbstract and provides > > implementation for the two abstract methods. #getInitialRole() is the > > important one. #getAdditionalInitialRoles() could return empty set. You > > need to provide the initial role for the newly created user so that it > has > > permissions to use the "user space" of your application. > > > > See isis-module-security/webapp for a demo. > > > > Initially SecurityModuleAppUserRegistrationServiceAbstract wasn't > abstract > > and was automatically detected but since it doesn't know anything about > > your application roles the newly created user didn't have any roles and > it > > was able to see only the logout menu of the application. The application > > administrator had to add the respective role manually so the user can > > actually use the application. Not very useful! That's why we changed it > to > > abstract. But apparently forgot to update the documentation [1] > > Sorry about that! > > > > 1. > http://isis.apache.org/reference/services/user-registration-service.html > > > > Martin Grigorov > > Wicket Training and Consulting > > https://twitter.com/mtgrigorov > > > > On Sat, Feb 14, 2015 at 3:38 PM, James Agada <[email protected]> > > wrote: > > > >> From the debug, there is no UserRegistrationService configured. How does > >> one do that? Was this not supposed to be a default configuration once > the > >> security-module is in the path? > >> final boolean visibilityAllowed = > userRegistrationService > >> != null && emailNotificationService.isConfigured(); > >> userRegisterationService was null. > >> > >> On Feb 13, 2015, at 4:04 PM, Martin Grigorov <[email protected]> > >> wrote: > >> > >> Hi, > >> > >> Put a breakpoint > >> at > >> > org.apache.isis.viewer.wicket.ui.pages.login.IsisSignInPanel#setVisibilityAllowedBasedOnAvailableServices > >> and see why it returns false. > >> Do you have isis-module-security in the classpath ? You need something > >> like org.isisaddons.module.security.webapp.AppUserRegistrationService > which > >> role is to store the newly created users in the DB. This demo service > >> extends > >> from > >> > org.isisaddons.module.security.userreg.SecurityModuleAppUserRegistrationServiceAbstract > >> which provides almost everything. You just need to give a role to the > newly > >> created user. > >> > >> Martin Grigorov > >> Wicket Training and Consulting > >> https://twitter.com/mtgrigorov > >> > >> On Fri, Feb 13, 2015 at 4:59 PM, James Agada <[email protected]> > >> wrote: > >> > >> I have put this in the isis.properties but the SignUp and Reset Password > >> link still does not show up. > >> # > >> # required by EmailServiceDefault > >> # > >> [email protected] > >> isis.service.email.sender.password=zzzzz > >> > >> > >> > >> # > >> What else do i need to do? > >> > >> On Feb 8, 2015, at 11:32 PM, Martin Grigorov <[email protected]> > wrote: > >> > >> Hi, > >> > >> Please read > http://isis.apache.org/reference/services/email-service.html. > >> You just need to setup SMTP username and password for the sender (FROM > >> field). > >> Then just @Inject either EmailService or EmailNotificationService in > your > >> domain service. > >> > >> If the SMTP settings are not provided then the "SignUp" and "Reset > >> password" links won't appear in the SignIn page. > >> > >> Please subscribe to the mailing lists if you want sooner responses. I > >> see your messages are moderated and it takes some hours to appear in the > >> mailing list. > >> > >> > >> Martin Grigorov > >> Wicket Training and Consulting > >> https://twitter.com/mtgrigorov > >> > >> On Sun, Feb 8, 2015 at 9:24 PM, James Agada <[email protected]> > >> wrote: > >> > >> How can i get the emailservice and emailnotification service work? I > want > >> to be able to send mails when certain events happen and i also want to > use > >> email notification for user registration. It does not appear to be part > of > >> the security module demo app. > >> This email and any attachment thereto are confidential and priviledged. > >> if you have received it in error, please delete immediately and notify > the > >> sender. Do not disclose, copy, circulate or in any way use it. The > >> information contained therein is for the address only, if you reply on > it, > >> its at your own risk. Emails are not guaranteed to be secure or error > free, > >> the message and any attachment could be intercepted, corrupted, lost, > >> delayed, incomplete or ammended. Computer warehouse group and its > divisions > >> do not accept liability for damage caused by this email or any > attachment. > >> The message you tried to print is protected with Information Rights > >> Management. You don't have the necessary user rights to print the > message. > >> > >> > >> This email and any attachment thereto are confidential and priviledged. > >> if you have received it in error, please delete immediately and notify > the > >> sender. Do not disclose, copy, circulate or in any way use it. The > >> information contained therein is for the address only, if you reply on > it, > >> its at your own risk. Emails are not guaranteed to be secure or error > free, > >> the message and any attachment could be intercepted, corrupted, lost, > >> delayed, incomplete or ammended. Computer warehouse group and its > divisions > >> do not accept liability for damage caused by this email or any > attachment. > >> The message you tried to print is protected with Information Rights > >> Management. You don't have the necessary user rights to print the > message. > >> > >> > >> This email and any attachment thereto are confidential and priviledged. > >> if you have received it in error, please delete immediately and notify > the > >> sender. Do not disclose, copy, circulate or in any way use it. The > >> information contained therein is for the address only, if you reply on > it, > >> its at your own risk. Emails are not guaranteed to be secure or error > free, > >> the message and any attachment could be intercepted, corrupted, lost, > >> delayed, incomplete or ammended. Computer warehouse group and its > divisions > >> do not accept liability for damage caused by this email or any > attachment. > >> The message you tried to print is protected with Information Rights > >> Management. You don't have the necessary user rights to print the > message. > >> > >> This email and any attachment thereto are confidential and priviledged. > >> if you have received it in error, please delete immediately and notify > the > >> sender. Do not disclose, copy, circulate or in any way use it. The > >> information contained therein is for the address only, if you reply on > it, > >> its at your own risk. Emails are not guaranteed to be secure or error > free, > >> the message and any attachment could be intercepted, corrupted, lost, > >> delayed, incomplete or ammended. Computer warehouse group and its > divisions > >> do not accept liability for damage caused by this email or any > attachment. > >> The message you tried to print is protected with Information Rights > >> Management. You don't have the necessary user rights to print the > message. > >> > >> > >> This email and any attachment thereto are confidential and priviledged. > >> if you have received it in error, please delete immediately and notify > the > >> sender. Do not disclose, copy, circulate or in any way use it. The > >> information contained therein is for the address only, if you reply on > it, > >> its at your own risk. Emails are not guaranteed to be secure or error > free, > >> the message and any attachment could be intercepted, corrupted, lost, > >> delayed, incomplete or ammended. Computer warehouse group and its > divisions > >> do not accept liability for damage caused by this email or any > attachment. > >> The message you tried to print is protected with Information Rights > >> Management. You don't have the necessary user rights to print the > message. > >> > > This email and any attachment thereto are confidential and priviledged. > if you have received it in error, please delete immediately and notify the > sender. Do not disclose, copy, circulate or in any way use it. The > information contained therein is for the address only, if you reply on it, > its at your own risk. Emails are not guaranteed to be secure or error free, > the message and any attachment could be intercepted, corrupted, lost, > delayed, incomplete or ammended. Computer warehouse group and its divisions > do not accept liability for damage caused by this email or any attachment. > The message you tried to print is protected with Information Rights > Management. You don't have the necessary user rights to print the message. > > This email and any attachment thereto are confidential and priviledged. if > you have received it in error, please delete immediately and notify the > sender. Do not disclose, copy, circulate or in any way use it. The > information contained therein is for the address only, if you reply on it, > its at your own risk. Emails are not guaranteed to be secure or error free, > the message and any attachment could be intercepted, corrupted, lost, > delayed, incomplete or ammended. Computer warehouse group and its divisions > do not accept liability for damage caused by this email or any attachment. > The message you tried to print is protected with Information Rights > Management. You don't have the necessary user rights to print the message. >
