You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by James Agada <Ja...@CWG-PLC.COM> on 2015/02/06 16:18:53 UTC

Re: Getting module security to work

I followed the process here https://github.com/isisaddons/isis-module-security  to setup the security module sample application. I am however unable to logon with sven/pass. I also tried pass/pass but both cannot login. I get this error

    [exec] at java.lang.Thread.run(Thread.java:745)
     [exec] 15:08:02,023  [Native               qtp1396261783-29 DEBUG]  SELECT 'org.isisaddons.module.security.dom.user.ApplicationUser' AS NUCLEUS_TYPE,"A0"."accountType","A0"."emailAddress","A0"."encryptedPassword","A0"."familyName","A0"."faxNumber","A0"."givenName","A0"."knownAs","A0"."phoneNumber","A0"."status","A0"."username","A0"."id","A0"."version" FROM "IsisSecurityApplicationUser" "A0" WHERE "A0"."username" = <'sven'>
     [exec] 15:08:02,041  [Native               qtp1396261783-29 DEBUG]  SELECT 'org.isisaddons.module.security.dom.role.ApplicationRole' AS NUCLEUS_TYPE,"A1"."description","A1"."name","A1"."id" FROM "IsisSecurityApplicationUserRoles" "A0" INNER JOIN "IsisSecurityApplicationRole" "A1" ON "A0"."roleId" = "A1"."id" WHERE "A0"."userId" = <1>
     [exec] 15:08:02,043  [Native               qtp1396261783-29 DEBUG]  SELECT DISTINCT 'org.isisaddons.module.security.dom.permission.ApplicationPermission' AS NUCLEUS_TYPE,"A0"."featureFqn","A0"."featureType","A0"."mode","A0"."rule","A0"."id","A0"."version" FROM "IsisSecurityApplicationPermission" "A0" CROSS JOIN "IsisSecurityApplicationUser" "VAR_u" INNER JOIN "IsisSecurityApplicationUserRoles" "C0" ON "VAR_u"."id" = "C0"."userId" INNER JOIN "IsisSecurityApplicationRole" "D0" ON "C0"."roleId" = "D0"."id" WHERE "D0"."id" = "A0"."roleId" AND "VAR_u"."username" = <'sven'>
     [exec] 15:08:02,045  [ShiroAuthenticatorOrAuthorizor qtp1396261783-29 ERROR]  Unable to authenticate
     [exec] org.apache.shiro.authc.DisabledAccountException
     [exec] at org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:82)
     [exec] at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
     [exec] at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
     [exec] at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
     [exec] at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
     [exec] at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
     [exec] at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
     [exec] at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
     [exec] at org.apache.isis.security.shiro.ShiroAuthenticatorOrAuthorizor.authenticate(ShiroAuthenticatorOrAuthorizor.java:141)
     [exec] at org.apache.isis.core.runtime.authentication.standard.AuthenticationManagerStandard.authenticate(AuthenticationManagerStandard.java:122)
     [exec] at org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis.authenticate(AuthenticatedWebSessionForIsis.java:80)
     [exec] at org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65)
     [exec] at org.apache.wicket.authroles.authentication.panel.SignInPanel.signIn(SignInPanel.java:218)
     [exec] at org.apache.wicket.authroles.authentication.panel.SignInPanel.access$100(SignInPanel.java:51)
     [exec] at org.apache.wicket.authroles.authentication.panel.SignInPanel$SignInForm.onSubmit(SignInPanel.java:313)
     [exec] at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1272)
     [exec] at org.apache.wicket.markup.html.form.Form.process(Form.java:938)
     [exec] at org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:100)
     [exec] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
     [exec] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [exec] at java.lang.reflect.Method.invoke(Method.java:483)
     [exec] at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
     [exec] at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
     [exec] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
     [exec] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
     [exec] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
     [exec] at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
     [exec] at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
     [exec] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
     [exec] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
     [exec] at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
     [exec] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
     [exec] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
     [exec] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
     [exec] at org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52)
     [exec] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
     [exec] at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
     [exec] at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
     [exec] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
     [exec] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
     [exec] at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
     [exec] at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
     [exec] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
     [exec] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
     [exec] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
     [exec] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
     [exec] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
     [exec] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
     [exec] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
     [exec] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
     [exec] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
     [exec] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
     [exec] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
     [exec] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
     [exec] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
     [exec] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
     [exec] at org.eclipse.jetty.server.Server.handle(Server.java:349)
     [exec] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
     [exec] at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:921)
     [exec] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784)
     [exec] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223)
     [exec] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
     [exec] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
     [exec] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
     [exec] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
     [exec] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
     [exec] at java.lang.Thread.run(Thread.java:745)
     [exec] 16:11:34,738  [Native               qtp1396261783-27 DEBUG]  SELECT 'org.isisaddons.module.security.dom.user.ApplicationUser' AS NUCLEUS_TYPE,"A0"."accountType","A0"."emailAddress","A0"."encryptedPassword","A0"."familyName","A0"."faxNumber","A0"."givenName","A0"."knownAs","A0"."phoneNumber","A0"."status","A0"."username","A0"."id","A0"."version" FROM "IsisSecurityApplicationUser" "A0" WHERE "A0"."username" = <'admin'>
     [exec] 16:11:34,743  [Native               qtp1396261783-27 DEBUG]  INSERT INTO "IsisSecurityApplicationUser" ("encryptedPassword","tenancyId","knownAs","emailAddress","faxNumber","username","phoneNumber","accountType","givenName","status","familyName","version") VALUES (<null>,<null>,<null>,<null>,<null>,<'admin'>,<null>,<'DELEGATED'>,<null>,<'DISABLED'>,<null>,<1>)
     [exec] 16:11:34,746  [Native               qtp1396261783-27 DEBUG]  SELECT 'org.isisaddons.module.security.dom.role.ApplicationRole' AS NUCLEUS_TYPE,"A1"."description","A1"."name","A1"."id" FROM "IsisSecurityApplicationUserRoles" "A0" INNER JOIN "IsisSecurityApplicationRole" "A1" ON "A0"."roleId" = "A1"."id" WHERE "A0"."userId" = <2>
     [exec] 16:11:34,749  [Native               qtp1396261783-27 DEBUG]  SELECT DISTINCT 'org.isisaddons.module.security.dom.permission.ApplicationPermission' AS NUCLEUS_TYPE,"A0"."featureFqn","A0"."featureType","A0"."mode","A0"."rule","A0"."id","A0"."version" FROM "IsisSecurityApplicationPermission" "A0" CROSS JOIN "IsisSecurityApplicationUser" "VAR_u" INNER JOIN "IsisSecurityApplicationUserRoles" "C0" ON "VAR_u"."id" = "C0"."userId" INNER JOIN "IsisSecurityApplicationRole" "D0" ON "C0"."roleId" = "D0"."id" WHERE "D0"."id" = "A0"."roleId" AND "VAR_u"."username" = <'admin'>
     [exec] 16:11:34,750  [ShiroAuthenticatorOrAuthorizor qtp1396261783-27 ERROR]  Unable to authenticate
     [exec] org.apache.shiro.authc.DisabledAccountException
     [exec] at org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:82)
     [exec] at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
     [exec] at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
     [exec] at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
     [exec] at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
     [exec] at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
     [exec] at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
     [exec] at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
     [exec] at org.apache.isis.security.shiro.ShiroAuthenticatorOrAuthorizor.authenticate(ShiroAuthenticatorOrAuthorizor.java:141)
     [exec] at org.apache.isis.core.runtime.authentication.standard.AuthenticationManagerStandard.authenticate(AuthenticationManagerStandard.java:122)
     [exec] at org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis.authenticate(AuthenticatedWebSessionForIsis.java:80)
     [exec] at org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65)
     [exec] at org.apache.wicket.authroles.authentication.panel.SignInPanel.signIn(SignInPanel.java:218)
     [exec] at org.apache.wicket.authroles.authentication.panel.SignInPanel.access$100(SignInPanel.java:51)
     [exec] at org.apache.wicket.authroles.authentication.panel.SignInPanel$SignInForm.onSubmit(SignInPanel.java:313)
     [exec] at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1272)
     [exec] at org.apache.wicket.markup.html.form.Form.process(Form.java:938)
     [exec] at org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:100)
     [exec] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
     [exec] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [exec] at java.lang.reflect.Method.invoke(Method.java:483)
     [exec] at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
     [exec] at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
     [exec] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
     [exec] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
     [exec] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
     [exec] at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
     [exec] at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
     [exec] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
     [exec] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
     [exec] at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
     [exec] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
     [exec] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
     [exec] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
     [exec] at org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52)
     [exec] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
     [exec] at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
     [exec] at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
     [exec] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
     [exec] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
     [exec] at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
     [exec] at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
     [exec] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
     [exec] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
     [exec] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
     [exec] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
     [exec] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
     [exec] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
     [exec] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
     [exec] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
     [exec] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
     [exec] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
     [exec] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
     [exec] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
     [exec] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
     [exec] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
     [exec] at org.eclipse.jetty.server.Server.handle(Server.java:349)
     [exec] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
     [exec] at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:921)
     [exec] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784)
     [exec] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223)
     [exec] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
     [exec] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
     [exec] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
     [exec] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
     [exec] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
     [exec] at java.lang.Thread.run(Thread.java:745)

What am I doing wrong? What I really want to do is to add the security model to a simple archetype and go on from there.
Rgds
James Agada
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.

Re: Getting module security to work

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Just wanted to close off this thread...

The todoapp has now moved to isisaddons, and integrates security and other
services.  So you can use this as a working example to use as a reference
[1]

HTH
Dan

[1] https://github.com/isisaddons/isis-app-todoapp





On 8 February 2015 at 22:37, Martin Grigorov <mg...@apache.org> wrote:

> Hi,
>
> On Sun, Feb 8, 2015 at 7:58 PM, James Agada <Ja...@cwg-plc.com>
> wrote:
>
> > I will like to get the following services working, but I am stumped since
> > the documentation is a bit scattered.
> >
> > 1. Security module - with working userregisteration, password reset,
> > forgot password functionality. I have downloaded the security module
> sample
> > application and tried to run it but no luck. How can I make this work on
> a
> > simple app archetype.
> >
>
> Please check my response to your question about email service.
> I'll see how security module documentation can be improved to explain what
> to do to to see this functionality in the demo app.
> For obvious reasons we won't hardcode SMTP username and password in the
> demo app.
>
>
> > 2. Audit module - how do I add this to the simple app archetype. I just
> > want it to work and then I can extend to my application.
> >
>
> I haven't used this module myself yet but most of the time all you need to
> do is just to add Maven dependency to the -dom module, i.e.
> isis-module-audit-dom, to your webapp/pom.xml.
> Check http://isis.apache.org/reference/services/auditing-service.html and
> https://github.com/isisaddons/isis-module-audit/blob/master/README.md
>
>
> >
> > Rgds
> > 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.
> >
>

Re: Getting module security to work

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

On Sun, Feb 8, 2015 at 7:58 PM, James Agada <Ja...@cwg-plc.com> wrote:

> I will like to get the following services working, but I am stumped since
> the documentation is a bit scattered.
>
> 1. Security module - with working userregisteration, password reset,
> forgot password functionality. I have downloaded the security module sample
> application and tried to run it but no luck. How can I make this work on a
> simple app archetype.
>

Please check my response to your question about email service.
I'll see how security module documentation can be improved to explain what
to do to to see this functionality in the demo app.
For obvious reasons we won't hardcode SMTP username and password in the
demo app.


> 2. Audit module - how do I add this to the simple app archetype. I just
> want it to work and then I can extend to my application.
>

I haven't used this module myself yet but most of the time all you need to
do is just to add Maven dependency to the -dom module, i.e.
isis-module-audit-dom, to your webapp/pom.xml.
Check http://isis.apache.org/reference/services/auditing-service.html and
https://github.com/isisaddons/isis-module-audit/blob/master/README.md


>
> Rgds
> 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.
>

Re: Getting email service to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
Ok. Thanks.

Sent from my iPhone

On Feb 8, 2015, at 11:33 PM, Martin Grigorov <mg...@apache.org>> 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 <Ja...@cwg-plc.com>> 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.

Re: Getting email service to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
Now I understand. Thanks.
> On Feb 14, 2015, at 2:53 PM, Martin Grigorov <mg...@apache.org> 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 <Ja...@cwg-plc.com>
> 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 <mg...@apache.org>
>> 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 <Ja...@cwg-plc.com>
>> wrote:
>>
>> I have put this in the isis.properties but the SignUp and Reset Password
>> link still does not show up.
>> #
>> # required by EmailServiceDefault
>> #
>> isis.service.email.sender.address=james.agada@cwlgroup.com
>> isis.service.email.sender.password=zzzzz
>>
>>
>>
>> #
>> What else do i need to do?
>>
>> On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mg...@apache.org> 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 <Ja...@cwg-plc.com>
>> 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.

Re: Getting email service to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
Fixed. Used the AppUserRegistrationService.java as model. thanks.
On Feb 14, 2015, at 3:11 PM, Martin Grigorov <mg...@apache.org>> wrote:

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 <Ja...@cwg-plc.com>> 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 <mg...@apache.org>> 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 <Ja...@cwg-plc.com>>
> 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 <mg...@apache.org>>
>> 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 <Ja...@cwg-plc.com>>
>> wrote:
>>
>> I have put this in the isis.properties but the SignUp and Reset Password
>> link still does not show up.
>> #
>> # required by EmailServiceDefault
>> #
>> isis.service.email.sender.address=james.agada@cwlgroup.com<ma...@cwlgroup.com>
>> isis.service.email.sender.password=zzzzz
>>
>>
>>
>> #
>> What else do i need to do?
>>
>> On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mg...@apache.org>> 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 <Ja...@cwg-plc.com>>
>> 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.

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.

Re: Getting email service to work

Posted by Martin Grigorov <mg...@apache.org>.
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 <Ja...@cwg-plc.com>
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 <mg...@apache.org>
> 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 <Ja...@cwg-plc.com>
> > 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 <mg...@apache.org>
> >> 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 <Ja...@cwg-plc.com>
> >> wrote:
> >>
> >> I have put this in the isis.properties but the SignUp and Reset Password
> >> link still does not show up.
> >> #
> >> # required by EmailServiceDefault
> >> #
> >> isis.service.email.sender.address=james.agada@cwlgroup.com
> >> isis.service.email.sender.password=zzzzz
> >>
> >>
> >>
> >> #
> >> What else do i need to do?
> >>
> >> On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mg...@apache.org>
> 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 <Ja...@cwg-plc.com>
> >> 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.
>

Re: Getting email service to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
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 <mg...@apache.org> 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 <Ja...@cwg-plc.com>
> 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 <mg...@apache.org>
>> 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 <Ja...@cwg-plc.com>
>> wrote:
>>
>> I have put this in the isis.properties but the SignUp and Reset Password
>> link still does not show up.
>> #
>> # required by EmailServiceDefault
>> #
>> isis.service.email.sender.address=james.agada@cwlgroup.com
>> isis.service.email.sender.password=zzzzz
>>
>>
>>
>> #
>> What else do i need to do?
>>
>> On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mg...@apache.org> 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 <Ja...@cwg-plc.com>
>> 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.

Re: Getting email service to work

Posted by Martin Grigorov <mg...@apache.org>.
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 <Ja...@cwg-plc.com>
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 <mg...@apache.org>
> 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 <Ja...@cwg-plc.com>
> wrote:
>
> I have put this in the isis.properties but the SignUp and Reset Password
> link still does not show up.
> #
> # required by EmailServiceDefault
> #
> isis.service.email.sender.address=james.agada@cwlgroup.com
> isis.service.email.sender.password=zzzzz
>
>
>
> #
> What else do i need to do?
>
> On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mg...@apache.org> 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 <Ja...@cwg-plc.com>
> 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.
>

Re: Getting email service to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
>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 <mg...@apache.org>> 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 <Ja...@cwg-plc.com>
wrote:

I have put this in the isis.properties but the SignUp and Reset Password
link still does not show up.
#
# required by EmailServiceDefault
#
isis.service.email.sender.address=james.agada@cwlgroup.com
isis.service.email.sender.password=zzzzz



#
What else do i need to do?

On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mg...@apache.org> 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 <Ja...@cwg-plc.com>
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.

Re: Getting email service to work

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
As Martin says, put a breakpoint in to help figure out what you've missed.

See [1] or [2] for how to run your app from the IDE.

[1] http://isis.apache.org/intro/getting-started/ide/eclipse.html
[2] http://isis.apache.org/intro/getting-started/ide/intellij.html


On 13 February 2015 at 17:33, James Agada <Ja...@cwg-plc.com> wrote:

> I have isis-module-security in the class path. I can log as security admin
> and create users. I do not understand what I have to do with
> org.isisaddons.module.security.webapp.AppUserRegistrationService . There is
> no link at all to register or reset password.
> > On Feb 13, 2015, at 4:04 PM, Martin Grigorov <mg...@apache.org>
> wrote:
> >
> > Hi,
> >
> > Put a breakpoint
> > at
> org.apache.isis.viewer.wicket.ui.pages.login.IsisSignInPanel#setVisibilityAllowedBasedOnAvailableServices
> > and see why it returns false.
>
>

Re: Getting email service to work

Posted by Martin Grigorov <mg...@apache.org>.
org.apache.isis.viewer.wicket.ui.pages.login.IsisSignInPanel#
setVisibilityAllowedBasedOnAvailableServices()

https://github.com/apache/isis/blob/master/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/pages/login/IsisSignInPanel.java#L121

http://www.vogella.com/tutorials/EclipseDebugging/article.html
https://www.jetbrains.com/idea/help/debugging.html

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Feb 13, 2015 at 10:22 PM, James Agada <Ja...@cwg-plc.com>
wrote:

> I am running from the command line. How do I set the breakpoint and where?
>
> Sent from my iPhone
>
> On Feb 13, 2015, at 9:20 PM, Martin Grigorov <mgrigorov@apache.org<mailto:
> mgrigorov@apache.org>> wrote:
>
> Hi,
>
> On Fri, Feb 13, 2015 at 7:56 PM, James Agada <James.agada@cwg-plc.com
> <ma...@cwg-plc.com>> wrote:
> #
> # whether to suppress the 'rememberMe' checkbox on the login page (default
> is false)
> #
> isis.viewer.wicket.suppressRememberMe=false
>
> #
> # if user attempts to access a protected URL before signing in, then as a
> convenience the viewer will continue
> # through to that destination after successful login.  If you consider
> this to be a security risk then this flag
> # disables that behaviour (default is false).
> #
> isis.viewer.wicket.clearOriginalDestination=true
> isis.viewer.wicket.suppressSignUp=false
>
> The default of this setting is 'false' so unless you set it manually to
> 'true' it shouldn't be the reason.
>
> Did you find the issue after setting the breakpoint ?
>
>
> On Feb 13, 2015, at 6:46 PM, James Agada <James.agada@CWG-PLC.COM<mailto:
> James.agada@CWG-PLC.COM><mailto:James.agada@CWG-PLC.COM<mailto:
> James.agada@CWG-PLC.COM>>> wrote:
>
>         <dependency>
>             <groupId>org.isisaddons.module.security</groupId>
>             <artifactId>isis-module-security-dom</artifactId>
>             <version>1.8.0-SNAPSHOT</version>
>         </dependency>
> On Feb 13, 2015, at 6:33 PM, James Agada <James.agada@CWG-PLC.COM<mailto:
> James.agada@CWG-PLC.COM><mailto:James.agada@CWG-PLC.COM<mailto:
> James.agada@CWG-PLC.COM>>> wrote:
>
> I have isis-module-security in the class path. I can log as security admin
> and create users. I do not understand what I have to do with
> org.isisaddons.module.security.webapp.AppUserRegistrationService . There is
> no link at all to register or reset password.
> On Feb 13, 2015, at 4:04 PM, Martin Grigorov <mgrigorov@apache.org<mailto:
> mgrigorov@apache.org><mailto:mgrigorov@apache.org<mailto:
> mgrigorov@apache.org>>> 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 <James.agada@cwg-plc.com
> <ma...@cwg-plc.com><mailto:James.agada@cwg-plc.com<mailto:
> James.agada@cwg-plc.com>>>
> wrote:
>
> I have put this in the isis.properties but the SignUp and Reset Password
> link still does not show up.
> #
> # required by EmailServiceDefault
> #
> isis.service.email.sender.address=james.agada@cwlgroup.com<mailto:
> james.agada@cwlgroup.com><mailto:isis.service.email.sender.address<mailto:
> isis.service.email.sender.address>=james.agada@cwlgroup.com<mailto:
> james.agada@cwlgroup.com>>
> isis.service.email.sender.password=zzzzz
>
>
>
> #
> What else do i need to do?
>
> On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mgrigorov@apache.org<mailto:
> mgrigorov@apache.org><mailto:mgrigorov@apache.org<mailto:
> mgrigorov@apache.org>>> 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 <James.agada@cwg-plc.com
> <ma...@cwg-plc.com><mailto:James.agada@cwg-plc.com<mailto:
> James.agada@cwg-plc.com>>>
> 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.
>
> 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.
>

Re: Getting email service to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
I am running from the command line. How do I set the breakpoint and where?

Sent from my iPhone

On Feb 13, 2015, at 9:20 PM, Martin Grigorov <mg...@apache.org>> wrote:

Hi,

On Fri, Feb 13, 2015 at 7:56 PM, James Agada <Ja...@cwg-plc.com>> wrote:
#
# whether to suppress the 'rememberMe' checkbox on the login page (default is false)
#
isis.viewer.wicket.suppressRememberMe=false

#
# if user attempts to access a protected URL before signing in, then as a convenience the viewer will continue
# through to that destination after successful login.  If you consider this to be a security risk then this flag
# disables that behaviour (default is false).
#
isis.viewer.wicket.clearOriginalDestination=true
isis.viewer.wicket.suppressSignUp=false

The default of this setting is 'false' so unless you set it manually to 'true' it shouldn't be the reason.

Did you find the issue after setting the breakpoint ?


On Feb 13, 2015, at 6:46 PM, James Agada <Ja...@CWG-PLC.COM>>> wrote:

        <dependency>
            <groupId>org.isisaddons.module.security</groupId>
            <artifactId>isis-module-security-dom</artifactId>
            <version>1.8.0-SNAPSHOT</version>
        </dependency>
On Feb 13, 2015, at 6:33 PM, James Agada <Ja...@CWG-PLC.COM>>> wrote:

I have isis-module-security in the class path. I can log as security admin and create users. I do not understand what I have to do with org.isisaddons.module.security.webapp.AppUserRegistrationService . There is no link at all to register or reset password.
On Feb 13, 2015, at 4:04 PM, Martin Grigorov <mg...@apache.org>>> 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 <Ja...@cwg-plc.com>>>
wrote:

I have put this in the isis.properties but the SignUp and Reset Password
link still does not show up.
#
# required by EmailServiceDefault
#
isis.service.email.sender.address=james.agada@cwlgroup.com<ma...@cwlgroup.com>>
isis.service.email.sender.password=zzzzz



#
What else do i need to do?

On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mg...@apache.org>>> 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 <Ja...@cwg-plc.com>>>
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.

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.

Re: Getting email service to work

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

On Fri, Feb 13, 2015 at 7:56 PM, James Agada <Ja...@cwg-plc.com>
wrote:

> #
> # whether to suppress the 'rememberMe' checkbox on the login page (default
> is false)
> #
> isis.viewer.wicket.suppressRememberMe=false
>
> #
> # if user attempts to access a protected URL before signing in, then as a
> convenience the viewer will continue
> # through to that destination after successful login.  If you consider
> this to be a security risk then this flag
> # disables that behaviour (default is false).
> #
> isis.viewer.wicket.clearOriginalDestination=true
> isis.viewer.wicket.suppressSignUp=false
>

The default of this setting is 'false' so unless you set it manually to
'true' it shouldn't be the reason.

Did you find the issue after setting the breakpoint ?


>
> On Feb 13, 2015, at 6:46 PM, James Agada <James.agada@CWG-PLC.COM<mailto:
> James.agada@CWG-PLC.COM>> wrote:
>
>         <dependency>
>             <groupId>org.isisaddons.module.security</groupId>
>             <artifactId>isis-module-security-dom</artifactId>
>             <version>1.8.0-SNAPSHOT</version>
>         </dependency>
> On Feb 13, 2015, at 6:33 PM, James Agada <James.agada@CWG-PLC.COM<mailto:
> James.agada@CWG-PLC.COM>> wrote:
>
> I have isis-module-security in the class path. I can log as security admin
> and create users. I do not understand what I have to do with
> org.isisaddons.module.security.webapp.AppUserRegistrationService . There is
> no link at all to register or reset password.
> On Feb 13, 2015, at 4:04 PM, Martin Grigorov <mgrigorov@apache.org<mailto:
> mgrigorov@apache.org>> 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 <James.agada@cwg-plc.com
> <ma...@cwg-plc.com>>
> wrote:
>
> I have put this in the isis.properties but the SignUp and Reset Password
> link still does not show up.
> #
> # required by EmailServiceDefault
> #
> isis.service.email.sender.address=james.agada@cwlgroup.com<mailto:
> isis.service.email.sender.address=james.agada@cwlgroup.com>
> isis.service.email.sender.password=zzzzz
>
>
>
> #
> What else do i need to do?
>
> On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mgrigorov@apache.org<mailto:
> mgrigorov@apache.org>> 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 <James.agada@cwg-plc.com
> <ma...@cwg-plc.com>>
> 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.
>

Re: Getting email service to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
#
# whether to suppress the 'rememberMe' checkbox on the login page (default is false)
#
isis.viewer.wicket.suppressRememberMe=false

#
# if user attempts to access a protected URL before signing in, then as a convenience the viewer will continue
# through to that destination after successful login.  If you consider this to be a security risk then this flag
# disables that behaviour (default is false).
#
isis.viewer.wicket.clearOriginalDestination=true
isis.viewer.wicket.suppressSignUp=false

On Feb 13, 2015, at 6:46 PM, James Agada <Ja...@CWG-PLC.COM>> wrote:

        <dependency>
            <groupId>org.isisaddons.module.security</groupId>
            <artifactId>isis-module-security-dom</artifactId>
            <version>1.8.0-SNAPSHOT</version>
        </dependency>
On Feb 13, 2015, at 6:33 PM, James Agada <Ja...@CWG-PLC.COM>> wrote:

I have isis-module-security in the class path. I can log as security admin and create users. I do not understand what I have to do with org.isisaddons.module.security.webapp.AppUserRegistrationService . There is no link at all to register or reset password.
On Feb 13, 2015, at 4:04 PM, Martin Grigorov <mg...@apache.org>> 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 <Ja...@cwg-plc.com>>
wrote:

I have put this in the isis.properties but the SignUp and Reset Password
link still does not show up.
#
# required by EmailServiceDefault
#
isis.service.email.sender.address=james.agada@cwlgroup.com<ma...@cwlgroup.com>
isis.service.email.sender.password=zzzzz



#
What else do i need to do?

On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mg...@apache.org>> 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 <Ja...@cwg-plc.com>>
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.

Re: Getting email service to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
        <dependency>
            <groupId>org.isisaddons.module.security</groupId>
            <artifactId>isis-module-security-dom</artifactId>
            <version>1.8.0-SNAPSHOT</version>
        </dependency>
On Feb 13, 2015, at 6:33 PM, James Agada <Ja...@CWG-PLC.COM>> wrote:

I have isis-module-security in the class path. I can log as security admin and create users. I do not understand what I have to do with org.isisaddons.module.security.webapp.AppUserRegistrationService . There is no link at all to register or reset password.
On Feb 13, 2015, at 4:04 PM, Martin Grigorov <mg...@apache.org>> 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 <Ja...@cwg-plc.com>
wrote:

I have put this in the isis.properties but the SignUp and Reset Password
link still does not show up.
#
# required by EmailServiceDefault
#
isis.service.email.sender.address=james.agada@cwlgroup.com
isis.service.email.sender.password=zzzzz



#
What else do i need to do?

On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mg...@apache.org> 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 <Ja...@cwg-plc.com>
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.

Re: Getting email service to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
I have isis-module-security in the class path. I can log as security admin and create users. I do not understand what I have to do with org.isisaddons.module.security.webapp.AppUserRegistrationService . There is no link at all to register or reset password.
> On Feb 13, 2015, at 4:04 PM, Martin Grigorov <mg...@apache.org> 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 <Ja...@cwg-plc.com>
> wrote:
>
>> I have put this in the isis.properties but the SignUp and Reset Password
>> link still does not show up.
>> #
>> # required by EmailServiceDefault
>> #
>> isis.service.email.sender.address=james.agada@cwlgroup.com
>> isis.service.email.sender.password=zzzzz
>>
>>
>>
>> #
>> What else do i need to do?
>>
>> On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mg...@apache.org> 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 <Ja...@cwg-plc.com>
>> 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.

Re: Getting email service to work

Posted by Martin Grigorov <mg...@apache.org>.
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 <Ja...@cwg-plc.com>
wrote:

>  I have put this in the isis.properties but the SignUp and Reset Password
>  link still does not show up.
> #
> # required by EmailServiceDefault
> #
> isis.service.email.sender.address=james.agada@cwlgroup.com
> isis.service.email.sender.password=zzzzz
>
>
>
>  #
> What else do i need to do?
>
> On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mg...@apache.org> 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 <Ja...@cwg-plc.com>
> 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.
>

Re: Getting email service to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
I have put this in the isis.properties but the SignUp and Reset Password  link still does not show up.
#
# required by EmailServiceDefault
#
isis.service.email.sender.address=james.agada@cwlgroup.com<ma...@cwlgroup.com>
isis.service.email.sender.password=zzzzz



#
What else do i need to do?
On Feb 8, 2015, at 11:32 PM, Martin Grigorov <mg...@apache.org>> 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 <Ja...@cwg-plc.com>> 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.

Re: Getting email service to work

Posted by Martin Grigorov <mg...@apache.org>.
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 <Ja...@cwg-plc.com> 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.
>

Re: Getting email service to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
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.

Re: Getting module security to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
I will like to get the following services working, but I am stumped since the documentation is a bit scattered.

1. Security module - with working userregisteration, password reset, forgot password functionality. I have downloaded the security module sample application and tried to run it but no luck. How can I make this work on a simple app archetype.
2. Audit module - how do I add this to the simple app archetype. I just want it to work and then I can extend to my application.

Rgds
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.

Re: Getting module security to work

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
The normal sven/pass user account is defined in shiro.ini, but when you
configure the security module, then its the users set up through its seed
data that you need to use.  As Martin says, isis-module-security-admin/pass
is the "root" account.

Once you've logged in, you might also noticed additional users...
including, perhaps "sven".  The security module can be configured either to
run in delegated mode (for integration with an external service such as
LDAP), or non-delegated mode.  If in delegated mode then any attempt to
login will automatically create that user.  However, it will be created
DISABLED, for safety; the idea being that the security administrator can
then grant the appropriate role and enable.

In 1.8.0-SNAPSHOT there's also a new service, UserRegistrationService, and
the security module provides a mostly complete implementation of this
in SecurityModuleAppUserRegistrationServiceAbstract.  The idea is to allow
users to be created programmatically.  This is used by our new support for
"self-registration", see [1] for more details.

Dan

[1] http://isis.apache.org/reference/services/user-registration-service.html






On 6 February 2015 at 15:30, Martin Grigorov <mg...@apache.org> wrote:

> Hi,
>
> Login with isis-module-security-admin/pass and see the available users in
> Security > All users menu
> On Feb 6, 2015 5:22 PM, "James Agada" <Ja...@cwg-plc.com> wrote:
>
> > I followed the process here
> > https://github.com/isisaddons/isis-module-security  to setup the
> security
> > module sample application. I am however unable to logon with sven/pass. I
> > also tried pass/pass but both cannot login. I get this error
> >
> >     [exec] at java.lang.Thread.run(Thread.java:745)
> >      [exec] 15:08:02,023  [Native               qtp1396261783-29 DEBUG]
> > SELECT 'org.isisaddons.module.security.dom.user.ApplicationUser' AS
> >
> NUCLEUS_TYPE,"A0"."accountType","A0"."emailAddress","A0"."encryptedPassword","A0"."familyName","A0"."faxNumber","A0"."givenName","A0"."knownAs","A0"."phoneNumber","A0"."status","A0"."username","A0"."id","A0"."version"
> > FROM "IsisSecurityApplicationUser" "A0" WHERE "A0"."username" = <'sven'>
> >      [exec] 15:08:02,041  [Native               qtp1396261783-29 DEBUG]
> > SELECT 'org.isisaddons.module.security.dom.role.ApplicationRole' AS
> > NUCLEUS_TYPE,"A1"."description","A1"."name","A1"."id" FROM
> > "IsisSecurityApplicationUserRoles" "A0" INNER JOIN
> > "IsisSecurityApplicationRole" "A1" ON "A0"."roleId" = "A1"."id" WHERE
> > "A0"."userId" = <1>
> >      [exec] 15:08:02,043  [Native               qtp1396261783-29 DEBUG]
> > SELECT DISTINCT
> > 'org.isisaddons.module.security.dom.permission.ApplicationPermission' AS
> >
> NUCLEUS_TYPE,"A0"."featureFqn","A0"."featureType","A0"."mode","A0"."rule","A0"."id","A0"."version"
> > FROM "IsisSecurityApplicationPermission" "A0" CROSS JOIN
> > "IsisSecurityApplicationUser" "VAR_u" INNER JOIN
> > "IsisSecurityApplicationUserRoles" "C0" ON "VAR_u"."id" = "C0"."userId"
> > INNER JOIN "IsisSecurityApplicationRole" "D0" ON "C0"."roleId" =
> "D0"."id"
> > WHERE "D0"."id" = "A0"."roleId" AND "VAR_u"."username" = <'sven'>
> >      [exec] 15:08:02,045  [ShiroAuthenticatorOrAuthorizor
> qtp1396261783-29
> > ERROR]  Unable to authenticate
> >      [exec] org.apache.shiro.authc.DisabledAccountException
> >      [exec] at
> >
> org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:82)
> >      [exec] at
> >
> org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
> >      [exec] at
> >
> org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
> >      [exec] at
> >
> org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
> >      [exec] at
> >
> org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
> >      [exec] at
> >
> org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
> >      [exec] at
> >
> org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
> >      [exec] at
> >
> org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
> >      [exec] at
> >
> org.apache.isis.security.shiro.ShiroAuthenticatorOrAuthorizor.authenticate(ShiroAuthenticatorOrAuthorizor.java:141)
> >      [exec] at
> >
> org.apache.isis.core.runtime.authentication.standard.AuthenticationManagerStandard.authenticate(AuthenticationManagerStandard.java:122)
> >      [exec] at
> >
> org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis.authenticate(AuthenticatedWebSessionForIsis.java:80)
> >      [exec] at
> >
> org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65)
> >      [exec] at
> >
> org.apache.wicket.authroles.authentication.panel.SignInPanel.signIn(SignInPanel.java:218)
> >      [exec] at
> >
> org.apache.wicket.authroles.authentication.panel.SignInPanel.access$100(SignInPanel.java:51)
> >      [exec] at
> >
> org.apache.wicket.authroles.authentication.panel.SignInPanel$SignInForm.onSubmit(SignInPanel.java:313)
> >      [exec] at
> > org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1272)
> >      [exec] at
> > org.apache.wicket.markup.html.form.Form.process(Form.java:938)
> >      [exec] at
> >
> org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:100)
> >      [exec] at
> > org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
> >      [exec] at
> > org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
> >      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> >      [exec] at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> >      [exec] at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >      [exec] at java.lang.reflect.Method.invoke(Method.java:483)
> >      [exec] at
> >
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
> >      [exec] at
> >
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
> >      [exec] at
> >
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
> >      [exec] at
> >
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
> >      [exec] at
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
> >      [exec] at
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> >      [exec] at
> >
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
> >      [exec] at
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
> >      [exec] at
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
> >      [exec] at
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
> >      [exec] at
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
> >      [exec] at
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
> >      [exec] at
> >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
> >      [exec] at
> >
> org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52)
> >      [exec] at
> >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
> >      [exec] at
> >
> org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
> >      [exec] at
> >
> org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
> >      [exec] at
> >
> org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
> >      [exec] at
> >
> org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
> >      [exec] at
> >
> org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
> >      [exec] at
> >
> org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
> >      [exec] at
> >
> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
> >      [exec] at
> >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
> >      [exec] at
> >
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> >      [exec] at
> >
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
> >      [exec] at
> >
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
> >      [exec] at
> > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
> >      [exec] at
> >
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
> >      [exec] at org.eclipse.jetty.server.Server.handle(Server.java:349)
> >      [exec] at
> >
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
> >      [exec] at
> >
> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:921)
> >      [exec] at
> > org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784)
> >      [exec] at
> > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223)
> >      [exec] at
> >
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
> >      [exec] at
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
> >      [exec] at
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
> >      [exec] at
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
> >      [exec] at
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
> >      [exec] at java.lang.Thread.run(Thread.java:745)
> >      [exec] 16:11:34,738  [Native               qtp1396261783-27 DEBUG]
> > SELECT 'org.isisaddons.module.security.dom.user.ApplicationUser' AS
> >
> NUCLEUS_TYPE,"A0"."accountType","A0"."emailAddress","A0"."encryptedPassword","A0"."familyName","A0"."faxNumber","A0"."givenName","A0"."knownAs","A0"."phoneNumber","A0"."status","A0"."username","A0"."id","A0"."version"
> > FROM "IsisSecurityApplicationUser" "A0" WHERE "A0"."username" = <'admin'>
> >      [exec] 16:11:34,743  [Native               qtp1396261783-27 DEBUG]
> > INSERT INTO "IsisSecurityApplicationUser"
> >
> ("encryptedPassword","tenancyId","knownAs","emailAddress","faxNumber","username","phoneNumber","accountType","givenName","status","familyName","version")
> > VALUES
> >
> (<null>,<null>,<null>,<null>,<null>,<'admin'>,<null>,<'DELEGATED'>,<null>,<'DISABLED'>,<null>,<1>)
> >      [exec] 16:11:34,746  [Native               qtp1396261783-27 DEBUG]
> > SELECT 'org.isisaddons.module.security.dom.role.ApplicationRole' AS
> > NUCLEUS_TYPE,"A1"."description","A1"."name","A1"."id" FROM
> > "IsisSecurityApplicationUserRoles" "A0" INNER JOIN
> > "IsisSecurityApplicationRole" "A1" ON "A0"."roleId" = "A1"."id" WHERE
> > "A0"."userId" = <2>
> >      [exec] 16:11:34,749  [Native               qtp1396261783-27 DEBUG]
> > SELECT DISTINCT
> > 'org.isisaddons.module.security.dom.permission.ApplicationPermission' AS
> >
> NUCLEUS_TYPE,"A0"."featureFqn","A0"."featureType","A0"."mode","A0"."rule","A0"."id","A0"."version"
> > FROM "IsisSecurityApplicationPermission" "A0" CROSS JOIN
> > "IsisSecurityApplicationUser" "VAR_u" INNER JOIN
> > "IsisSecurityApplicationUserRoles" "C0" ON "VAR_u"."id" = "C0"."userId"
> > INNER JOIN "IsisSecurityApplicationRole" "D0" ON "C0"."roleId" =
> "D0"."id"
> > WHERE "D0"."id" = "A0"."roleId" AND "VAR_u"."username" = <'admin'>
> >      [exec] 16:11:34,750  [ShiroAuthenticatorOrAuthorizor
> qtp1396261783-27
> > ERROR]  Unable to authenticate
> >      [exec] org.apache.shiro.authc.DisabledAccountException
> >      [exec] at
> >
> org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:82)
> >      [exec] at
> >
> org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
> >      [exec] at
> >
> org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
> >      [exec] at
> >
> org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
> >      [exec] at
> >
> org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
> >      [exec] at
> >
> org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
> >      [exec] at
> >
> org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
> >      [exec] at
> >
> org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
> >      [exec] at
> >
> org.apache.isis.security.shiro.ShiroAuthenticatorOrAuthorizor.authenticate(ShiroAuthenticatorOrAuthorizor.java:141)
> >      [exec] at
> >
> org.apache.isis.core.runtime.authentication.standard.AuthenticationManagerStandard.authenticate(AuthenticationManagerStandard.java:122)
> >      [exec] at
> >
> org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis.authenticate(AuthenticatedWebSessionForIsis.java:80)
> >      [exec] at
> >
> org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65)
> >      [exec] at
> >
> org.apache.wicket.authroles.authentication.panel.SignInPanel.signIn(SignInPanel.java:218)
> >      [exec] at
> >
> org.apache.wicket.authroles.authentication.panel.SignInPanel.access$100(SignInPanel.java:51)
> >      [exec] at
> >
> org.apache.wicket.authroles.authentication.panel.SignInPanel$SignInForm.onSubmit(SignInPanel.java:313)
> >      [exec] at
> > org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1272)
> >      [exec] at
> > org.apache.wicket.markup.html.form.Form.process(Form.java:938)
> >      [exec] at
> >
> org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:100)
> >      [exec] at
> > org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
> >      [exec] at
> > org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
> >      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> >      [exec] at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> >      [exec] at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >      [exec] at java.lang.reflect.Method.invoke(Method.java:483)
> >      [exec] at
> >
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
> >      [exec] at
> >
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
> >      [exec] at
> >
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
> >      [exec] at
> >
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
> >      [exec] at
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
> >      [exec] at
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> >      [exec] at
> >
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
> >      [exec] at
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
> >      [exec] at
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
> >      [exec] at
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
> >      [exec] at
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
> >      [exec] at
> >
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
> >      [exec] at
> >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
> >      [exec] at
> >
> org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52)
> >      [exec] at
> >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
> >      [exec] at
> >
> org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
> >      [exec] at
> >
> org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
> >      [exec] at
> >
> org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
> >      [exec] at
> >
> org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
> >      [exec] at
> >
> org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
> >      [exec] at
> >
> org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
> >      [exec] at
> >
> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
> >      [exec] at
> >
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
> >      [exec] at
> >
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> >      [exec] at
> >
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
> >      [exec] at
> >
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
> >      [exec] at
> > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
> >      [exec] at
> >
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
> >      [exec] at
> >
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
> >      [exec] at org.eclipse.jetty.server.Server.handle(Server.java:349)
> >      [exec] at
> >
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
> >      [exec] at
> >
> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:921)
> >      [exec] at
> > org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784)
> >      [exec] at
> > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223)
> >      [exec] at
> >
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
> >      [exec] at
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
> >      [exec] at
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
> >      [exec] at
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
> >      [exec] at
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
> >      [exec] at java.lang.Thread.run(Thread.java:745)
> >
> > What am I doing wrong? What I really want to do is to add the security
> > model to a simple archetype and go on from there.
> > Rgds
> > James Agada
> > 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.
> >
>

Re: Getting module security to work

Posted by Martin Grigorov <mg...@apache.org>.
The git README page explains about the isis-module-security-admin user.
Please send a pull request with your suggestion. Thank you!
On Feb 6, 2015 5:40 PM, "James Agada" <Ja...@cwg-plc.com> wrote:

>  Works Thanks. Someone needs to update the git page.
>
> On Feb 6, 2015, at 4:30 PM, Martin Grigorov <mg...@apache.org> wrote:
>
>  Hi,
>
> Login with isis-module-security-admin/pass and see the available users in
> Security > All users menu
> On Feb 6, 2015 5:22 PM, "James Agada" <Ja...@cwg-plc.com> wrote:
>
>> I followed the process here
>> https://github.com/isisaddons/isis-module-security  to setup the
>> security module sample application. I am however unable to logon with
>> sven/pass. I also tried pass/pass but both cannot login. I get this error
>>
>>     [exec] at java.lang.Thread.run(Thread.java:745)
>>      [exec] 15:08:02,023  [Native               qtp1396261783-29 DEBUG]
>> SELECT 'org.isisaddons.module.security.dom.user.ApplicationUser' AS
>> NUCLEUS_TYPE,"A0"."accountType","A0"."emailAddress","A0"."encryptedPassword","A0"."familyName","A0"."faxNumber","A0"."givenName","A0"."knownAs","A0"."phoneNumber","A0"."status","A0"."username","A0"."id","A0"."version"
>> FROM "IsisSecurityApplicationUser" "A0" WHERE "A0"."username" = <'sven'>
>>      [exec] 15:08:02,041  [Native               qtp1396261783-29 DEBUG]
>> SELECT 'org.isisaddons.module.security.dom.role.ApplicationRole' AS
>> NUCLEUS_TYPE,"A1"."description","A1"."name","A1"."id" FROM
>> "IsisSecurityApplicationUserRoles" "A0" INNER JOIN
>> "IsisSecurityApplicationRole" "A1" ON "A0"."roleId" = "A1"."id" WHERE
>> "A0"."userId" = <1>
>>      [exec] 15:08:02,043  [Native               qtp1396261783-29 DEBUG]
>> SELECT DISTINCT
>> 'org.isisaddons.module.security.dom.permission.ApplicationPermission' AS
>> NUCLEUS_TYPE,"A0"."featureFqn","A0"."featureType","A0"."mode","A0"."rule","A0"."id","A0"."version"
>> FROM "IsisSecurityApplicationPermission" "A0" CROSS JOIN
>> "IsisSecurityApplicationUser" "VAR_u" INNER JOIN
>> "IsisSecurityApplicationUserRoles" "C0" ON "VAR_u"."id" = "C0"."userId"
>> INNER JOIN "IsisSecurityApplicationRole" "D0" ON "C0"."roleId" = "D0"."id"
>> WHERE "D0"."id" = "A0"."roleId" AND "VAR_u"."username" = <'sven'>
>>      [exec] 15:08:02,045  [ShiroAuthenticatorOrAuthorizor
>> qtp1396261783-29 ERROR]  Unable to authenticate
>>      [exec] org.apache.shiro.authc.DisabledAccountException
>>      [exec] at
>> org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:82)
>>      [exec] at
>> org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
>>      [exec] at
>> org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
>>      [exec] at
>> org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
>>      [exec] at
>> org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
>>      [exec] at
>> org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
>>      [exec] at
>> org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
>>      [exec] at
>> org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
>>      [exec] at
>> org.apache.isis.security.shiro.ShiroAuthenticatorOrAuthorizor.authenticate(ShiroAuthenticatorOrAuthorizor.java:141)
>>      [exec] at
>> org.apache.isis.core.runtime.authentication.standard.AuthenticationManagerStandard.authenticate(AuthenticationManagerStandard.java:122)
>>      [exec] at
>> org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis.authenticate(AuthenticatedWebSessionForIsis.java:80)
>>      [exec] at
>> org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65)
>>      [exec] at
>> org.apache.wicket.authroles.authentication.panel.SignInPanel.signIn(SignInPanel.java:218)
>>      [exec] at
>> org.apache.wicket.authroles.authentication.panel.SignInPanel.access$100(SignInPanel.java:51)
>>      [exec] at
>> org.apache.wicket.authroles.authentication.panel.SignInPanel$SignInForm.onSubmit(SignInPanel.java:313)
>>      [exec] at
>> org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1272)
>>      [exec] at
>> org.apache.wicket.markup.html.form.Form.process(Form.java:938)
>>      [exec] at
>> org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:100)
>>      [exec] at
>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
>>      [exec] at
>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
>>      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>      [exec] at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>      [exec] at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>      [exec] at java.lang.reflect.Method.invoke(Method.java:483)
>>      [exec] at
>> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
>>      [exec] at
>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
>>      [exec] at
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
>>      [exec] at
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
>>      [exec] at
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
>>      [exec] at
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>>      [exec] at
>> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
>>      [exec] at
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
>>      [exec] at
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
>>      [exec] at
>> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
>>      [exec] at
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
>>      [exec] at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
>>      [exec] at
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
>>      [exec] at
>> org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52)
>>      [exec] at
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
>>      [exec] at
>> org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
>>      [exec] at
>> org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
>>      [exec] at
>> org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
>>      [exec] at
>> org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
>>      [exec] at
>> org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
>>      [exec] at
>> org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
>>      [exec] at
>> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
>>      [exec] at
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
>>      [exec] at
>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
>>      [exec] at
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>>      [exec] at
>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
>>      [exec] at
>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
>>      [exec] at
>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
>>      [exec] at
>> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
>>      [exec] at
>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
>>      [exec] at
>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
>>      [exec] at
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>>      [exec] at
>> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
>>      [exec] at
>> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
>>      [exec] at
>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
>>      [exec] at org.eclipse.jetty.server.Server.handle(Server.java:349)
>>      [exec] at
>> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
>>      [exec] at
>> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:921)
>>      [exec] at
>> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784)
>>      [exec] at
>> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223)
>>      [exec] at
>> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
>>      [exec] at
>> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
>>      [exec] at
>> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
>>      [exec] at
>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
>>      [exec] at
>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
>>      [exec] at java.lang.Thread.run(Thread.java:745)
>>      [exec] 16:11:34,738  [Native               qtp1396261783-27 DEBUG]
>> SELECT 'org.isisaddons.module.security.dom.user.ApplicationUser' AS
>> NUCLEUS_TYPE,"A0"."accountType","A0"."emailAddress","A0"."encryptedPassword","A0"."familyName","A0"."faxNumber","A0"."givenName","A0"."knownAs","A0"."phoneNumber","A0"."status","A0"."username","A0"."id","A0"."version"
>> FROM "IsisSecurityApplicationUser" "A0" WHERE "A0"."username" = <'admin'>
>>      [exec] 16:11:34,743  [Native               qtp1396261783-27 DEBUG]
>> INSERT INTO "IsisSecurityApplicationUser"
>> ("encryptedPassword","tenancyId","knownAs","emailAddress","faxNumber","username","phoneNumber","accountType","givenName","status","familyName","version")
>> VALUES
>> (<null>,<null>,<null>,<null>,<null>,<'admin'>,<null>,<'DELEGATED'>,<null>,<'DISABLED'>,<null>,<1>)
>>      [exec] 16:11:34,746  [Native               qtp1396261783-27 DEBUG]
>> SELECT 'org.isisaddons.module.security.dom.role.ApplicationRole' AS
>> NUCLEUS_TYPE,"A1"."description","A1"."name","A1"."id" FROM
>> "IsisSecurityApplicationUserRoles" "A0" INNER JOIN
>> "IsisSecurityApplicationRole" "A1" ON "A0"."roleId" = "A1"."id" WHERE
>> "A0"."userId" = <2>
>>      [exec] 16:11:34,749  [Native               qtp1396261783-27 DEBUG]
>> SELECT DISTINCT
>> 'org.isisaddons.module.security.dom.permission.ApplicationPermission' AS
>> NUCLEUS_TYPE,"A0"."featureFqn","A0"."featureType","A0"."mode","A0"."rule","A0"."id","A0"."version"
>> FROM "IsisSecurityApplicationPermission" "A0" CROSS JOIN
>> "IsisSecurityApplicationUser" "VAR_u" INNER JOIN
>> "IsisSecurityApplicationUserRoles" "C0" ON "VAR_u"."id" = "C0"."userId"
>> INNER JOIN "IsisSecurityApplicationRole" "D0" ON "C0"."roleId" = "D0"."id"
>> WHERE "D0"."id" = "A0"."roleId" AND "VAR_u"."username" = <'admin'>
>>      [exec] 16:11:34,750  [ShiroAuthenticatorOrAuthorizor
>> qtp1396261783-27 ERROR]  Unable to authenticate
>>      [exec] org.apache.shiro.authc.DisabledAccountException
>>      [exec] at
>> org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:82)
>>      [exec] at
>> org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
>>      [exec] at
>> org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
>>      [exec] at
>> org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
>>      [exec] at
>> org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
>>      [exec] at
>> org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
>>      [exec] at
>> org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
>>      [exec] at
>> org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
>>      [exec] at
>> org.apache.isis.security.shiro.ShiroAuthenticatorOrAuthorizor.authenticate(ShiroAuthenticatorOrAuthorizor.java:141)
>>      [exec] at
>> org.apache.isis.core.runtime.authentication.standard.AuthenticationManagerStandard.authenticate(AuthenticationManagerStandard.java:122)
>>      [exec] at
>> org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis.authenticate(AuthenticatedWebSessionForIsis.java:80)
>>      [exec] at
>> org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65)
>>      [exec] at
>> org.apache.wicket.authroles.authentication.panel.SignInPanel.signIn(SignInPanel.java:218)
>>      [exec] at
>> org.apache.wicket.authroles.authentication.panel.SignInPanel.access$100(SignInPanel.java:51)
>>      [exec] at
>> org.apache.wicket.authroles.authentication.panel.SignInPanel$SignInForm.onSubmit(SignInPanel.java:313)
>>      [exec] at
>> org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1272)
>>      [exec] at
>> org.apache.wicket.markup.html.form.Form.process(Form.java:938)
>>      [exec] at
>> org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:100)
>>      [exec] at
>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
>>      [exec] at
>> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
>>      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>      [exec] at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>      [exec] at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>      [exec] at java.lang.reflect.Method.invoke(Method.java:483)
>>      [exec] at
>> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
>>      [exec] at
>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
>>      [exec] at
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
>>      [exec] at
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
>>      [exec] at
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
>>      [exec] at
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>>      [exec] at
>> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
>>      [exec] at
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
>>      [exec] at
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
>>      [exec] at
>> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
>>      [exec] at
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
>>      [exec] at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
>>      [exec] at
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
>>      [exec] at
>> org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52)
>>      [exec] at
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
>>      [exec] at
>> org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
>>      [exec] at
>> org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
>>      [exec] at
>> org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
>>      [exec] at
>> org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
>>      [exec] at
>> org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
>>      [exec] at
>> org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
>>      [exec] at
>> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
>>      [exec] at
>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
>>      [exec] at
>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
>>      [exec] at
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>>      [exec] at
>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
>>      [exec] at
>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
>>      [exec] at
>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
>>      [exec] at
>> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
>>      [exec] at
>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
>>      [exec] at
>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
>>      [exec] at
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>>      [exec] at
>> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
>>      [exec] at
>> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
>>      [exec] at
>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
>>      [exec] at org.eclipse.jetty.server.Server.handle(Server.java:349)
>>      [exec] at
>> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
>>      [exec] at
>> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:921)
>>      [exec] at
>> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784)
>>      [exec] at
>> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223)
>>      [exec] at
>> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
>>      [exec] at
>> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
>>      [exec] at
>> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
>>      [exec] at
>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
>>      [exec] at
>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
>>      [exec] at java.lang.Thread.run(Thread.java:745)
>>
>> What am I doing wrong? What I really want to do is to add the security
>> model to a simple archetype and go on from there.
>> Rgds
>> James Agada
>> 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.
>

Re: Getting module security to work

Posted by James Agada <Ja...@CWG-PLC.COM>.
Works Thanks. Someone needs to update the git page.
On Feb 6, 2015, at 4:30 PM, Martin Grigorov <mg...@apache.org>> wrote:


Hi,

Login with isis-module-security-admin/pass and see the available users in Security > All users menu

On Feb 6, 2015 5:22 PM, "James Agada" <Ja...@cwg-plc.com>> wrote:
I followed the process here https://github.com/isisaddons/isis-module-security  to setup the security module sample application. I am however unable to logon with sven/pass. I also tried pass/pass but both cannot login. I get this error

    [exec] at java.lang.Thread.run(Thread.java:745)
     [exec] 15:08:02,023  [Native               qtp1396261783-29 DEBUG]  SELECT 'org.isisaddons.module.security.dom.user.ApplicationUser' AS NUCLEUS_TYPE,"A0"."accountType","A0"."emailAddress","A0"."encryptedPassword","A0"."familyName","A0"."faxNumber","A0"."givenName","A0"."knownAs","A0"."phoneNumber","A0"."status","A0"."username","A0"."id","A0"."version" FROM "IsisSecurityApplicationUser" "A0" WHERE "A0"."username" = <'sven'>
     [exec] 15:08:02,041  [Native               qtp1396261783-29 DEBUG]  SELECT 'org.isisaddons.module.security.dom.role.ApplicationRole' AS NUCLEUS_TYPE,"A1"."description","A1"."name","A1"."id" FROM "IsisSecurityApplicationUserRoles" "A0" INNER JOIN "IsisSecurityApplicationRole" "A1" ON "A0"."roleId" = "A1"."id" WHERE "A0"."userId" = <1>
     [exec] 15:08:02,043  [Native               qtp1396261783-29 DEBUG]  SELECT DISTINCT 'org.isisaddons.module.security.dom.permission.ApplicationPermission' AS NUCLEUS_TYPE,"A0"."featureFqn","A0"."featureType","A0"."mode","A0"."rule","A0"."id","A0"."version" FROM "IsisSecurityApplicationPermission" "A0" CROSS JOIN "IsisSecurityApplicationUser" "VAR_u" INNER JOIN "IsisSecurityApplicationUserRoles" "C0" ON "VAR_u"."id" = "C0"."userId" INNER JOIN "IsisSecurityApplicationRole" "D0" ON "C0"."roleId" = "D0"."id" WHERE "D0"."id" = "A0"."roleId" AND "VAR_u"."username" = <'sven'>
     [exec] 15:08:02,045  [ShiroAuthenticatorOrAuthorizor qtp1396261783-29 ERROR]  Unable to authenticate
     [exec] org.apache.shiro.authc.DisabledAccountException
     [exec] at org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:82)
     [exec] at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
     [exec] at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
     [exec] at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
     [exec] at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
     [exec] at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
     [exec] at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
     [exec] at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
     [exec] at org.apache.isis.security.shiro.ShiroAuthenticatorOrAuthorizor.authenticate(ShiroAuthenticatorOrAuthorizor.java:141)
     [exec] at org.apache.isis.core.runtime.authentication.standard.AuthenticationManagerStandard.authenticate(AuthenticationManagerStandard.java:122)
     [exec] at org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis.authenticate(AuthenticatedWebSessionForIsis.java:80)
     [exec] at org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65)
     [exec] at org.apache.wicket.authroles.authentication.panel.SignInPanel.signIn(SignInPanel.java:218)
     [exec] at org.apache.wicket.authroles.authentication.panel.SignInPanel.access$100(SignInPanel.java:51)
     [exec] at org.apache.wicket.authroles.authentication.panel.SignInPanel$SignInForm.onSubmit(SignInPanel.java:313)
     [exec] at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1272)
     [exec] at org.apache.wicket.markup.html.form.Form.process(Form.java:938)
     [exec] at org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:100)
     [exec] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
     [exec] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [exec] at java.lang.reflect.Method.invoke(Method.java:483)
     [exec] at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
     [exec] at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
     [exec] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
     [exec] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
     [exec] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
     [exec] at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
     [exec] at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
     [exec] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
     [exec] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
     [exec] at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
     [exec] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
     [exec] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
     [exec] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
     [exec] at org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52)
     [exec] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
     [exec] at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
     [exec] at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
     [exec] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
     [exec] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
     [exec] at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
     [exec] at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
     [exec] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
     [exec] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
     [exec] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
     [exec] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
     [exec] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
     [exec] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
     [exec] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
     [exec] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
     [exec] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
     [exec] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
     [exec] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
     [exec] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
     [exec] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
     [exec] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
     [exec] at org.eclipse.jetty.server.Server.handle(Server.java:349)
     [exec] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
     [exec] at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:921)
     [exec] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784)
     [exec] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223)
     [exec] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
     [exec] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
     [exec] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
     [exec] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
     [exec] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
     [exec] at java.lang.Thread.run(Thread.java:745)
     [exec] 16:11:34,738  [Native               qtp1396261783-27 DEBUG]  SELECT 'org.isisaddons.module.security.dom.user.ApplicationUser' AS NUCLEUS_TYPE,"A0"."accountType","A0"."emailAddress","A0"."encryptedPassword","A0"."familyName","A0"."faxNumber","A0"."givenName","A0"."knownAs","A0"."phoneNumber","A0"."status","A0"."username","A0"."id","A0"."version" FROM "IsisSecurityApplicationUser" "A0" WHERE "A0"."username" = <'admin'>
     [exec] 16:11:34,743  [Native               qtp1396261783-27 DEBUG]  INSERT INTO "IsisSecurityApplicationUser" ("encryptedPassword","tenancyId","knownAs","emailAddress","faxNumber","username","phoneNumber","accountType","givenName","status","familyName","version") VALUES (<null>,<null>,<null>,<null>,<null>,<'admin'>,<null>,<'DELEGATED'>,<null>,<'DISABLED'>,<null>,<1>)
     [exec] 16:11:34,746  [Native               qtp1396261783-27 DEBUG]  SELECT 'org.isisaddons.module.security.dom.role.ApplicationRole' AS NUCLEUS_TYPE,"A1"."description","A1"."name","A1"."id" FROM "IsisSecurityApplicationUserRoles" "A0" INNER JOIN "IsisSecurityApplicationRole" "A1" ON "A0"."roleId" = "A1"."id" WHERE "A0"."userId" = <2>
     [exec] 16:11:34,749  [Native               qtp1396261783-27 DEBUG]  SELECT DISTINCT 'org.isisaddons.module.security.dom.permission.ApplicationPermission' AS NUCLEUS_TYPE,"A0"."featureFqn","A0"."featureType","A0"."mode","A0"."rule","A0"."id","A0"."version" FROM "IsisSecurityApplicationPermission" "A0" CROSS JOIN "IsisSecurityApplicationUser" "VAR_u" INNER JOIN "IsisSecurityApplicationUserRoles" "C0" ON "VAR_u"."id" = "C0"."userId" INNER JOIN "IsisSecurityApplicationRole" "D0" ON "C0"."roleId" = "D0"."id" WHERE "D0"."id" = "A0"."roleId" AND "VAR_u"."username" = <'admin'>
     [exec] 16:11:34,750  [ShiroAuthenticatorOrAuthorizor qtp1396261783-27 ERROR]  Unable to authenticate
     [exec] org.apache.shiro.authc.DisabledAccountException
     [exec] at org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:82)
     [exec] at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
     [exec] at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
     [exec] at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
     [exec] at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
     [exec] at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
     [exec] at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
     [exec] at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
     [exec] at org.apache.isis.security.shiro.ShiroAuthenticatorOrAuthorizor.authenticate(ShiroAuthenticatorOrAuthorizor.java:141)
     [exec] at org.apache.isis.core.runtime.authentication.standard.AuthenticationManagerStandard.authenticate(AuthenticationManagerStandard.java:122)
     [exec] at org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis.authenticate(AuthenticatedWebSessionForIsis.java:80)
     [exec] at org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65)
     [exec] at org.apache.wicket.authroles.authentication.panel.SignInPanel.signIn(SignInPanel.java:218)
     [exec] at org.apache.wicket.authroles.authentication.panel.SignInPanel.access$100(SignInPanel.java:51)
     [exec] at org.apache.wicket.authroles.authentication.panel.SignInPanel$SignInForm.onSubmit(SignInPanel.java:313)
     [exec] at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1272)
     [exec] at org.apache.wicket.markup.html.form.Form.process(Form.java:938)
     [exec] at org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:100)
     [exec] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
     [exec] at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [exec] at java.lang.reflect.Method.invoke(Method.java:483)
     [exec] at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
     [exec] at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
     [exec] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
     [exec] at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
     [exec] at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
     [exec] at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
     [exec] at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
     [exec] at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
     [exec] at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
     [exec] at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
     [exec] at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
     [exec] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
     [exec] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
     [exec] at org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52)
     [exec] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
     [exec] at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
     [exec] at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
     [exec] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
     [exec] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
     [exec] at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
     [exec] at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
     [exec] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
     [exec] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
     [exec] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
     [exec] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
     [exec] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
     [exec] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
     [exec] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
     [exec] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
     [exec] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
     [exec] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
     [exec] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
     [exec] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
     [exec] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
     [exec] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
     [exec] at org.eclipse.jetty.server.Server.handle(Server.java:349)
     [exec] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
     [exec] at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:921)
     [exec] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784)
     [exec] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223)
     [exec] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
     [exec] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
     [exec] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
     [exec] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
     [exec] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
     [exec] at java.lang.Thread.run(Thread.java:745)

What am I doing wrong? What I really want to do is to add the security model to a simple archetype and go on from there.
Rgds
James Agada
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.

Re: Getting module security to work

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

Login with isis-module-security-admin/pass and see the available users in
Security > All users menu
On Feb 6, 2015 5:22 PM, "James Agada" <Ja...@cwg-plc.com> wrote:

> I followed the process here
> https://github.com/isisaddons/isis-module-security  to setup the security
> module sample application. I am however unable to logon with sven/pass. I
> also tried pass/pass but both cannot login. I get this error
>
>     [exec] at java.lang.Thread.run(Thread.java:745)
>      [exec] 15:08:02,023  [Native               qtp1396261783-29 DEBUG]
> SELECT 'org.isisaddons.module.security.dom.user.ApplicationUser' AS
> NUCLEUS_TYPE,"A0"."accountType","A0"."emailAddress","A0"."encryptedPassword","A0"."familyName","A0"."faxNumber","A0"."givenName","A0"."knownAs","A0"."phoneNumber","A0"."status","A0"."username","A0"."id","A0"."version"
> FROM "IsisSecurityApplicationUser" "A0" WHERE "A0"."username" = <'sven'>
>      [exec] 15:08:02,041  [Native               qtp1396261783-29 DEBUG]
> SELECT 'org.isisaddons.module.security.dom.role.ApplicationRole' AS
> NUCLEUS_TYPE,"A1"."description","A1"."name","A1"."id" FROM
> "IsisSecurityApplicationUserRoles" "A0" INNER JOIN
> "IsisSecurityApplicationRole" "A1" ON "A0"."roleId" = "A1"."id" WHERE
> "A0"."userId" = <1>
>      [exec] 15:08:02,043  [Native               qtp1396261783-29 DEBUG]
> SELECT DISTINCT
> 'org.isisaddons.module.security.dom.permission.ApplicationPermission' AS
> NUCLEUS_TYPE,"A0"."featureFqn","A0"."featureType","A0"."mode","A0"."rule","A0"."id","A0"."version"
> FROM "IsisSecurityApplicationPermission" "A0" CROSS JOIN
> "IsisSecurityApplicationUser" "VAR_u" INNER JOIN
> "IsisSecurityApplicationUserRoles" "C0" ON "VAR_u"."id" = "C0"."userId"
> INNER JOIN "IsisSecurityApplicationRole" "D0" ON "C0"."roleId" = "D0"."id"
> WHERE "D0"."id" = "A0"."roleId" AND "VAR_u"."username" = <'sven'>
>      [exec] 15:08:02,045  [ShiroAuthenticatorOrAuthorizor qtp1396261783-29
> ERROR]  Unable to authenticate
>      [exec] org.apache.shiro.authc.DisabledAccountException
>      [exec] at
> org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:82)
>      [exec] at
> org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
>      [exec] at
> org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
>      [exec] at
> org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
>      [exec] at
> org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
>      [exec] at
> org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
>      [exec] at
> org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
>      [exec] at
> org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
>      [exec] at
> org.apache.isis.security.shiro.ShiroAuthenticatorOrAuthorizor.authenticate(ShiroAuthenticatorOrAuthorizor.java:141)
>      [exec] at
> org.apache.isis.core.runtime.authentication.standard.AuthenticationManagerStandard.authenticate(AuthenticationManagerStandard.java:122)
>      [exec] at
> org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis.authenticate(AuthenticatedWebSessionForIsis.java:80)
>      [exec] at
> org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65)
>      [exec] at
> org.apache.wicket.authroles.authentication.panel.SignInPanel.signIn(SignInPanel.java:218)
>      [exec] at
> org.apache.wicket.authroles.authentication.panel.SignInPanel.access$100(SignInPanel.java:51)
>      [exec] at
> org.apache.wicket.authroles.authentication.panel.SignInPanel$SignInForm.onSubmit(SignInPanel.java:313)
>      [exec] at
> org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1272)
>      [exec] at
> org.apache.wicket.markup.html.form.Form.process(Form.java:938)
>      [exec] at
> org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:100)
>      [exec] at
> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
>      [exec] at
> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
>      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [exec] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>      [exec] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>      [exec] at java.lang.reflect.Method.invoke(Method.java:483)
>      [exec] at
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
>      [exec] at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
>      [exec] at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
>      [exec] at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
>      [exec] at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
>      [exec] at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>      [exec] at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
>      [exec] at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
>      [exec] at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
>      [exec] at
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
>      [exec] at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
>      [exec] at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
>      [exec] at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
>      [exec] at
> org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52)
>      [exec] at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
>      [exec] at
> org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
>      [exec] at
> org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
>      [exec] at
> org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
>      [exec] at
> org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
>      [exec] at
> org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
>      [exec] at
> org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
>      [exec] at
> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
>      [exec] at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
>      [exec] at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
>      [exec] at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>      [exec] at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
>      [exec] at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
>      [exec] at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
>      [exec] at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
>      [exec] at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
>      [exec] at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
>      [exec] at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>      [exec] at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
>      [exec] at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
>      [exec] at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
>      [exec] at org.eclipse.jetty.server.Server.handle(Server.java:349)
>      [exec] at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
>      [exec] at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:921)
>      [exec] at
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784)
>      [exec] at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223)
>      [exec] at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
>      [exec] at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
>      [exec] at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
>      [exec] at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
>      [exec] at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
>      [exec] at java.lang.Thread.run(Thread.java:745)
>      [exec] 16:11:34,738  [Native               qtp1396261783-27 DEBUG]
> SELECT 'org.isisaddons.module.security.dom.user.ApplicationUser' AS
> NUCLEUS_TYPE,"A0"."accountType","A0"."emailAddress","A0"."encryptedPassword","A0"."familyName","A0"."faxNumber","A0"."givenName","A0"."knownAs","A0"."phoneNumber","A0"."status","A0"."username","A0"."id","A0"."version"
> FROM "IsisSecurityApplicationUser" "A0" WHERE "A0"."username" = <'admin'>
>      [exec] 16:11:34,743  [Native               qtp1396261783-27 DEBUG]
> INSERT INTO "IsisSecurityApplicationUser"
> ("encryptedPassword","tenancyId","knownAs","emailAddress","faxNumber","username","phoneNumber","accountType","givenName","status","familyName","version")
> VALUES
> (<null>,<null>,<null>,<null>,<null>,<'admin'>,<null>,<'DELEGATED'>,<null>,<'DISABLED'>,<null>,<1>)
>      [exec] 16:11:34,746  [Native               qtp1396261783-27 DEBUG]
> SELECT 'org.isisaddons.module.security.dom.role.ApplicationRole' AS
> NUCLEUS_TYPE,"A1"."description","A1"."name","A1"."id" FROM
> "IsisSecurityApplicationUserRoles" "A0" INNER JOIN
> "IsisSecurityApplicationRole" "A1" ON "A0"."roleId" = "A1"."id" WHERE
> "A0"."userId" = <2>
>      [exec] 16:11:34,749  [Native               qtp1396261783-27 DEBUG]
> SELECT DISTINCT
> 'org.isisaddons.module.security.dom.permission.ApplicationPermission' AS
> NUCLEUS_TYPE,"A0"."featureFqn","A0"."featureType","A0"."mode","A0"."rule","A0"."id","A0"."version"
> FROM "IsisSecurityApplicationPermission" "A0" CROSS JOIN
> "IsisSecurityApplicationUser" "VAR_u" INNER JOIN
> "IsisSecurityApplicationUserRoles" "C0" ON "VAR_u"."id" = "C0"."userId"
> INNER JOIN "IsisSecurityApplicationRole" "D0" ON "C0"."roleId" = "D0"."id"
> WHERE "D0"."id" = "A0"."roleId" AND "VAR_u"."username" = <'admin'>
>      [exec] 16:11:34,750  [ShiroAuthenticatorOrAuthorizor qtp1396261783-27
> ERROR]  Unable to authenticate
>      [exec] org.apache.shiro.authc.DisabledAccountException
>      [exec] at
> org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:82)
>      [exec] at
> org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
>      [exec] at
> org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
>      [exec] at
> org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
>      [exec] at
> org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
>      [exec] at
> org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
>      [exec] at
> org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
>      [exec] at
> org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
>      [exec] at
> org.apache.isis.security.shiro.ShiroAuthenticatorOrAuthorizor.authenticate(ShiroAuthenticatorOrAuthorizor.java:141)
>      [exec] at
> org.apache.isis.core.runtime.authentication.standard.AuthenticationManagerStandard.authenticate(AuthenticationManagerStandard.java:122)
>      [exec] at
> org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis.authenticate(AuthenticatedWebSessionForIsis.java:80)
>      [exec] at
> org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65)
>      [exec] at
> org.apache.wicket.authroles.authentication.panel.SignInPanel.signIn(SignInPanel.java:218)
>      [exec] at
> org.apache.wicket.authroles.authentication.panel.SignInPanel.access$100(SignInPanel.java:51)
>      [exec] at
> org.apache.wicket.authroles.authentication.panel.SignInPanel$SignInForm.onSubmit(SignInPanel.java:313)
>      [exec] at
> org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1272)
>      [exec] at
> org.apache.wicket.markup.html.form.Form.process(Form.java:938)
>      [exec] at
> org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:100)
>      [exec] at
> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
>      [exec] at
> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
>      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [exec] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>      [exec] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>      [exec] at java.lang.reflect.Method.invoke(Method.java:483)
>      [exec] at
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
>      [exec] at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
>      [exec] at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
>      [exec] at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
>      [exec] at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
>      [exec] at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>      [exec] at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
>      [exec] at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
>      [exec] at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
>      [exec] at
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
>      [exec] at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
>      [exec] at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
>      [exec] at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
>      [exec] at
> org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52)
>      [exec] at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
>      [exec] at
> org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
>      [exec] at
> org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
>      [exec] at
> org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
>      [exec] at
> org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
>      [exec] at
> org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
>      [exec] at
> org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
>      [exec] at
> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
>      [exec] at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)
>      [exec] at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)
>      [exec] at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>      [exec] at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
>      [exec] at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
>      [exec] at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)
>      [exec] at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
>      [exec] at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
>      [exec] at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)
>      [exec] at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>      [exec] at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
>      [exec] at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
>      [exec] at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
>      [exec] at org.eclipse.jetty.server.Server.handle(Server.java:349)
>      [exec] at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
>      [exec] at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:921)
>      [exec] at
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784)
>      [exec] at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223)
>      [exec] at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
>      [exec] at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
>      [exec] at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
>      [exec] at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
>      [exec] at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
>      [exec] at java.lang.Thread.run(Thread.java:745)
>
> What am I doing wrong? What I really want to do is to add the security
> model to a simple archetype and go on from there.
> Rgds
> James Agada
> 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.
>