openid security showcase

18 views
Skip to first unread message

Matthew Pocock

unread,
May 8, 2012, 5:59:14 PM5/8/12
to ac...@googlegroups.com
Hi,

I would like to use openid to secure a webapp I'm developing. I stumbled over http://code.google.com/p/acris/wiki/OpenID which I hope does what I need, and one of the comments said the source for the example could be found at http://acris.googlecode.com/svn/trunk/acris-showcase/acris-showcase-openid/. I've checked this out but can't get it to build - there are a variety of dependencies apparently missing. Is there a branch/tag for the 1.2.0 release that I could try building against?

What I'm ideally looking for is a project that builds a war that I can deploy and watch openid logins working, and then hack about to merge it into my project. Is this showcase a good place to start?

Thanks,

Matthew

--
Dr Matthew Pocock
Integrative Bioinformatics Group, School of Computing Science, Newcastle University
skype: matthew.pocock
tel: (0191) 2566550

Ladislav Gazo

unread,
May 9, 2012, 2:45:05 AM5/9/12
to ac...@googlegroups.com
Hi Matthew,

in general, yes it is a good place to start. I'll take a look what is the problem with dependencies and let you know.

There is also the tagged version available here: http://acris.googlecode.com/svn/tags/acris-os-build/acris-os-build-1.2.0/

Regards,
Laco

Dňa utorok, 8. mája 2012 23:59:14 UTC+2 Matthew Pocock napísal(-a):
Hi,

I would like to use openid to secure a webapp I'm developing. I stumbled over http://code.google.com/p/acris/wiki/OpenID which I hope does what I need, and one of the comments said the source for the example could be found at http://acris.googlecode.com/svn/trunk/acris-showcase/acris-showcase-openid/. I've checked this out but can't get it to build - there are a variety of dependencies apparently missing. Is there a branch/tag for the 1.2.0 release that I could try building against?

What I'm ideally looking for is a project that builds a war that I can deploy and watch openid logins working, and then hack about to merge it into my project. Is this showcase a good place to start?

Thanks,

Matthew

--
Dr Matthew Pocock
Integrative Bioinformatics Group, School of Computing Science, Newcastle University

Matthew Pocock

unread,
May 9, 2012, 6:04:22 AM5/9/12
to ac...@googlegroups.com
Hi Laco,

Thanks. I've checked out the 1.2.0 branch and kicked off a build which failed. I have tried building just the showcase modules, and also ran into problems. It looks like some of the poms in this branch are at 1.1.3-SNAPSHOT, so I went through and changed all of these to 1.2.0. With this I was still unable to build the project as a whole, but got a bit further. So, I concentrated on building only the openid showcase. It wasn't finding the guice-servlet dependency, but I managed to fix that by adding the jbos repository to this pom. 

So, now I have acris-showcase-openid-1.2.0.jar built, what do I do to see it working?

Thanks,
Matthew

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running sk.seges.acris.pap.service.AsyncServiceProcessorTest

Starting java compiler:
javac -proc:only -classpath "{project.testClasspathElement;/home/nmrp3/devel/oss/acris-os-build-1.2.0/acris-annotation-processors/acris-async-service-processor/target\classes" -Aclasspath="{project.testClasspathElement;/home/nmrp3/devel/oss/acris-os-build-1.2.0/acris-annotation-processors/acris-async-service-processor/target\classes" -AprojectName=sk.seges.acris.pap.service.AsyncServiceProcessorTest -s /home/nmrp3/devel/oss/acris-os-build-1.2.0/acris-annotation-processors/acris-async-service-processor/target/generated-test -processor sk.seges.acris.pap.service.AsyncServiceProcessor  AsyncServiceProcessorTestConfiguration.java DummyService.java 

warning: Supported source version 'RELEASE_6' from annotation processor 'sk.seges.acris.pap.service.AsyncServiceProcessor' less than -source '1.7'
src/test/java/sk/seges/acris/pap/service/AsyncServiceProcessorTestConfiguration.java:3: error: package sk.seges.sesam.core.annotation.configuration does not exist
import sk.seges.sesam.core.annotation.configuration.ProcessorConfiguration;
                                                   ^
src/test/java/sk/seges/acris/pap/service/AsyncServiceProcessorTestConfiguration.java:5: error: package com.google.gwt.user.client.rpc does not exist
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
                                     ^
src/test/java/sk/seges/acris/pap/service/AsyncServiceProcessorTestConfiguration.java:7: error: cannot find symbol
@RemoteServiceRelativePath("")
 ^
  symbol: class RemoteServiceRelativePath
src/test/java/sk/seges/acris/pap/service/AsyncServiceProcessorTestConfiguration.java:8: error: cannot find symbol
@ProcessorConfiguration(processor = AsyncServiceProcessor.class)
 ^
  symbol: class ProcessorConfiguration
src/test/java/sk/seges/acris/pap/service/DummyService.java:3: error: package com.google.gwt.user.client.rpc does not exist
import com.google.gwt.user.client.rpc.RemoteService;
                                     ^
src/test/java/sk/seges/acris/pap/service/DummyService.java:5: error: cannot find symbol
public interface DummyService extends RemoteService {
                                      ^
  symbol: class RemoteService
warning: The following options were not recognized by any processor: '[projectName, classpath]'
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.351 sec <<< FAILURE!

Results :

Failed tests: 
  testAsyncService(sk.seges.acris.pap.service.AsyncServiceProcessorTest): Expected no errors

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /home/nmrp3/devel/oss/acris-os-build-1.2.0/acris-annotation-processors/acris-async-service-processor/target/surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Wed May 09 10:27:03 BST 2012
[INFO] Final Memory: 46M/241M
[INFO] ------------------------------------------------------------------------


--
You received this message because you are subscribed to the Google Groups "acris" group.
To view this discussion on the web visit https://groups.google.com/d/msg/acris/-/Y6t2fIalojEJ.
To post to this group, send email to ac...@googlegroups.com.
To unsubscribe from this group, send email to acris+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/acris?hl=en.



--
Dr Matthew Pocock
Integrative Bioinformatics Group, School of Computing Science, Newcastle University

Matthew Pocock

unread,
May 9, 2012, 8:36:22 AM5/9/12
to ac...@googlegroups.com
The demo at http://1.latest.acris-gwt.appspot.com/sk.seges.acris.demo.OpenID/OpenID.html works for me, which is great. I am guessing this builds upon the openid showcase code. However, I haven't found the source for this demo. Is it available? This would probably be enough to get me going.

Matthew

Ladislav Gazo

unread,
May 17, 2012, 9:24:39 AM5/17/12
to ac...@googlegroups.com
Hi Matthew,

sorry for not getting back to you sooner but I had to fix the build from scratch and now I am working on the showcase. The source code is here:  http://acris.googlecode.com/svn/trunk/acris-showcase/acris-showcase-openid/

I would like to create a new release with everything build-able over the weekend.

Don't expect it will pass tests as well for the moment please :)

Dňa streda, 9. mája 2012 14:36:22 UTC+2 Matthew Pocock napísal(-a):
Matthew

To unsubscribe from this group, send email to acris+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/acris?hl=en.



--
Dr Matthew Pocock
Integrative Bioinformatics Group, School of Computing Science, Newcastle University
skype: matthew.pocock
tel: (0191) 2566550

Matthew Pocock

unread,
May 17, 2012, 9:42:41 AM5/17/12
to ac...@googlegroups.com
Thanks. That's great.

Matthew

To view this discussion on the web visit https://groups.google.com/d/msg/acris/-/DSrwbL0R9pMJ.

To post to this group, send email to ac...@googlegroups.com.
To unsubscribe from this group, send email to acris+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/acris?hl=en.



--
Dr Matthew Pocock
Integrative Bioinformatics Group, School of Computing Science, Newcastle University

Ladislav Gazo

unread,
May 25, 2012, 9:00:02 AM5/25/12
to ac...@googlegroups.com
so I've finally released 1.2.1 - of course on Towel day ;) you can download it from the central repo probably tomorrow because it takes time to sync from sonatype... in any case there is a tagged version in svn if you want to check out source & I recommend you to not try to build it with tests running at the moment :)

Dňa štvrtok, 17. mája 2012 15:42:41 UTC+2 Matthew Pocock napísal(-a):
Reply all
Reply to author
Forward
0 new messages