« Railo and JBoss gets crickets at The Server Side | Main | ActionScript Annoyances (Part 1): Limitations on Default Parameter Values »

June 21, 2008

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83549daf569e200e55381b7708834

Listed below are links to weblogs that reference Integrating Blaze Data Services and Spring Security:

Comments

Govind

I have use a custom login command say xyz.LoginCommand BlazeDS is unable to create a channel or enpoint. However if i use a tomcat LoginCommand , BlazeDS is able to create a channel.

What could be the problem.

Regards
Govind

François Le Droff

Hello Cliff,

Thanks a lot for this blog entry and the associated source code.

I re-used and included your stuff in a library I released and documented here :
* http://fna.googlecode.com
* http://fna.googlecode.com/svn/trunk/fna/site/flex-contrib-spring/index.html

This library is also referenced in a maven archetype of mine:
* http://fna.googlecode.com/svn/trunk/fna/site/mvn_archetypes/blazeds-autowired-spring-hibernate-archetype/index.html

Blazeds-autowired-spring-hibernate-archetype helps you generate a multi-module maven project : a flex front-end application communicating with the backend through Adobe's blazeds messaging. The back-end relies on a spring hibernate architecture.

If you wanna contribute :
I'd be happy to update this library with your newest findings.

Cheers !
François
http://wwww.droff.com

Cliff Meyers

Hey Govind, I would recommend extending TomcatLoginCommand first but not overriding anything to ensure your configuration is correct. Then change your class to extend AppServerLoginCommand or simply just implement the LoginCommand interface.

Hey François, that is very cool. I'm glad you found it useful and thanks for sharing!

Jim To

Hi François, Thanks for the example I have BlazeDS-Spring Security up and running fine but there is one thing that is troubling me. The doAuthentication method returns an Authentication object which contains the appropriate roles for the user but the Flex client only recieves a String Object with the value 'Success' (From a valid login!)

Is there a way to return the user roles to the Flex client from this initial authentication call? I realise that it could be done with another call to a service but it would be useful to be able to do it here and then alter the client according to the returned roles.

Cheers!

en3rgizer

Hi there, where can i find a link to source files?

Cliff Meyers

I never posted the raw source files, just the snippets in this blog post. You can follow Francois' links to the FNA project which incorporates my snippets into full sample code.

en3rgizer

Thanks a lot, this greatly helped me!

dima_vp

For an example of integration of Blaze Data Services and Spring Security see http://dima-vp.livejournal.com/573.html.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.