Comments on: Acegi Security for Dummies https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/ Friends of Oracle and Java Sat, 02 May 2015 22:48:39 +0000 hourly 1 http://wordpress.org/?v=4.2.1 By: Sanjoy De https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3134 Wed, 17 Sep 2008 12:22:31 +0000 http://technology.amis.nl/blog/?p=1151#comment-3134 Hi Erik,
I am a Java developer and the framework is Spring. This Examples helps me a lot.
It will be very helpfull for me if you provide an another complete example which includes the complete acigi security.
I actually don’t understand the flow of login. Please give me an examples.

Thanks

Sanjoy De

]]>
By: Sachin Mali https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3133 Wed, 12 Mar 2008 19:06:17 +0000 http://technology.amis.nl/blog/?p=1151#comment-3133 I would like to thanks AMIS for publishing this article. It has been explained very nicely. Because of this only I was able to implement my Authentication thro JDBC for my Custom Tables as I can not use standard Acegi tables. Without this I would not have done my application’s authentication and authorization.
Thanks and Regards
Sachin Mali

]]>
By: Thomas https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3132 Mon, 03 Dec 2007 22:34:57 +0000 http://technology.amis.nl/blog/?p=1151#comment-3132 This blog only describes form authentication and not basic authentication like stated.

]]>
By: Anand Mohan Sravanam https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3131 Mon, 02 Jul 2007 08:43:45 +0000 http://technology.amis.nl/blog/?p=1151#comment-3131 Hi Eric Could you plz help in integrating Jcaptcha in Spring, Hibernate, Acegi environament. The User Name and passwords are stored in the database(MySql). As I am new to these concepts, I am in desperate need. I would be obliged if you help me ata an earliest.

]]>
By: filip https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3130 Fri, 16 Jun 2006 15:12:17 +0000 http://technology.amis.nl/blog/?p=1151#comment-3130 I am using acegi 1.0.0 rc2 and seems that there is a problem, i cannot find method [ setUsersByUsernameMapping(); ]
Can anyone help me with this. I was trying to override UsersByUsername Mapping() but i couldnt manage.
Thanks

]]>
By: Bunard https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3129 Thu, 25 May 2006 00:55:22 +0000 http://technology.amis.nl/blog/?p=1151#comment-3129 Erik,

Thank you for your reply.

I finally figured out by customizing the CustomUser into the authentication. Since the authentication is in the SecureContext, I can either access the CustomUser at my login jsp and put it to the session or I can access it at my regular servlet.

Here is how I access it:

String customUserName =((CustomUser)
((SecureContext)net.sf.acegisecurity.context.ContextHolder.getContext()).getAuthentication().getPrincipal()).getUsername()

Thanks,

Bunard

]]>
By: Erik Kerkhoven https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3128 Tue, 23 May 2006 01:01:54 +0000 http://technology.amis.nl/blog/?p=1151#comment-3128 Sounds like a valid business case and a good idea to switch to Spring gradually. See: http://www.acegisecurity.org/standalone.html.
See the answer of Ben Alex at http://forum.springframework.org/archive/index.php/t-9911.html
If your other application is Struts, you could use a plug-in, see: http://www.jroller.com/page/fairTrade?entry=integrating_acegi_and_struts. Here’s another example of Acegi – Struts integration with plug-in: http://www.jroller.com/page/chololo?entry=integrating_jcaptcha_with_acegi_security.

]]>
By: Bunard https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3127 Fri, 19 May 2006 17:45:23 +0000 http://technology.amis.nl/blog/?p=1151#comment-3127 Erik,

Now, that it works. The next step is I want to pass username, password, user roles, dept id… to HttpSession from AuthenticationJdbcDaoImpl so that my non-spring framework application can acces them.

Do you know how to do that? The Acegi and Spring framework are new to me. We decide to switch to them because we think they are good and secure frameworks.

I appreciate for your help.

Thanks,

Bunard

**************
My plan is to intergrate a new spring framework appliaction to the current non-framework application and use Acegi Security login for both of applications. Eventually, we will migrate the non-spring framework application to spring framework.

]]>
By: Erik Kerkhoven https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3126 Wed, 17 May 2006 23:15:54 +0000 http://technology.amis.nl/blog/?p=1151#comment-3126 Sorry, I didn’t understand you Maven issue. Thank you very much for your reply; very kind.

]]>
By: Bunard https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3125 Wed, 17 May 2006 23:02:29 +0000 http://technology.amis.nl/blog/?p=1151#comment-3125 Since maven has some problem. I manually build the sample and it works.
Thank you to Mr. Erik Kerkhoven for providing this sample.

]]>
By: Bunard https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3124 Mon, 15 May 2006 23:20:44 +0000 http://technology.amis.nl/blog/?p=1151#comment-3124 It could not fine the maven-war-plugin…


[ERROR] BUILD ERROR
[INFO] ————————————————————————-

[INFO] The plugin ‘org.apache.maven.plugins:maven-war-plugin’ does not exist or
no valid version could be found
[INFO] ————————————————————————-

]]>
By: Bunard https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3123 Fri, 12 May 2006 22:37:53 +0000 http://technology.amis.nl/blog/?p=1151#comment-3123 Please help! I got a BUILD ERROR when I run >mvn install
Here is my error:

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-instal
l-plugin/2.1/maven-install-plugin-2.1.jar
8K downloaded
[INFO] ————————————————————————
[ERROR] BUILD ERROR
[INFO] ————————————————————————
[INFO] Cannot execute mojo: resources. It requires a project with an existing po
m.xml, but the build is not using one.
[INFO] ————————————————————————
[INFO] For more information, run Maven with the -e switch
[INFO] ————————————————————————
[INFO] Total time: 17 seconds
[INFO] Finished at: Fri May 12 15:14:50 CDT 2006
[INFO] Final Memory: 2M/5M
[INFO] ————————————————————————

]]>
By: Kidd https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3122 Fri, 21 Apr 2006 19:31:11 +0000 http://technology.amis.nl/blog/?p=1151#comment-3122 Erik. Thanks for your blog entry. It worked for me nicely.

Here’s another acegi example for you folks out there:
http://www.thearcmind.com/confluence/display/SpribernateSF/Simplest+Acegi+Integration+Possible

]]>
By: Erik Kerkhoven https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3121 Thu, 20 Apr 2006 15:50:09 +0000 http://technology.amis.nl/blog/?p=1151#comment-3121 Forbidden?! oeps!

Reason for the building failure is that there are still three other jars in this respository (see pom.xml):

javax.servlet
servlet-api
2.4

javax.servlet
jstl
1.1.2

taglibs
standard
1.1.2

These must be installed manually as well with mvn install:install-file :-(

]]>
By: Angelo https://technology.amis.nl/2006/04/14/getting-started-with-acegi-security-system-for-spring/#comment-3120 Thu, 20 Apr 2006 13:22:20 +0000 http://technology.amis.nl/blog/?p=1151#comment-3120 Hi Erik.
In regards to using http://213.154.233.244:8181/maven2 I cannot access this. I get a 403 Forbidden error.
I used the mvn install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle.jdbc -DartifactId=ojdbc14 -Dversion=10.2.0.1.0 -Dpackaging=jar -DgeneratePom=true after getting the driver from the Oracle site and that worked.

When I issue the mvn eclipse:eclipse command, it still complains about not finding the driver in the remote repositories.

Thanks,
Angelo

]]>