ANN: Acegi Plugin 0.3 released

View: New views
2 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Re: ANN: Acegi Plugin 0.3 released

by Peter Cold :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Argh, I think I spoke too soon.  I'm having some trouble with the Ajax logins.

auth denied after an ajax login is redirecting to the errorPage, not the ajaxErrorPage as it should.  I'm pretty sure this is a bug because if I reset my errorPage config value to the value that I have in my ajaxErrorPage everything works (expect that now my non ajax error page is the ajax error page :( )

also, successful auth after an ajax action is redirecting to '/' when it should redirect to the ajax action that was called before the login attempt. 

Has anyone else seen this behavior?

-Peter






On Fri, Jun 13, 2008 at 12:35 PM, Peter Cold <pete@...> wrote:
I finally got around to doing this upgrade. The docs were a huge help and I had no problems.  Thanks Burt!



On Thu, May 15, 2008 at 8:29 AM, Burt Beckwith <burt@...> wrote:
Yeah, that's a good point. I'll update the docs.

Thanks
Burt

On Thursday 15 May 2008 11:25:35 am pbarnes wrote:
> Ah, thanks Burt - this was my issue.
>
> I kind of 'glossed over' this note in my review of the "Upgrade"
> documentation, since *I* wasn't calling any part of Acegi security
> explicitly within my code (just using the defaults with requestMap via the
> manager).
>
> I had previously used the generators to create domain-auths and manager and
> thus I guess one of these generators created the LoginController (in
> addition to Logout, User, Role and Requestmap controllers) within my
> application.  It was these auto-generated controller classes that were
> throwing the exception.
>
> Might I suggest adding to the upgrade documentation that these references
> need to be updated (or the controllers removed) BEFORE installing the
> plugin or else you'll receive compilation errors?
>
> Thanks again,
>
> Phil..
>
> burtbeckwith wrote:
> > AuthenticateService was moved to a package to allow usage in projects
> > that don't put everything in the default package. You'll need to add an
> > import for
> > it (org.grails.plugins.springsecurity.service.AuthenticateService).
> >
> > This is described in the upgrade page -
> > http://grails.org/AcegiSecurity+Plugin+-+Upgrading+from+0.2.x+to+0.3
> >
> > Burt
> >
> > On Thursday 15 May 2008 10:41:33 am pbarnes wrote:
> >> Hi all,
> >>
> >> First thanks for the work on this plugin, I've had good success with the
> >> 0.2 version.
> >>
> >> I'm trying to upgrade a simple application to 0.3.0.  I'm running a
> >> Grails-1.0.3-SNAPSHOT release (due to this bug:
> >> http://jira.codehaus.org/browse/GRAILS-2689 ), in case that might make a
> >> difference.
> >>
> >> I'm also following the upgrade instructions here:
> >> http://grails.org/AcegiSecurity+Plugin+-+Upgrading+from+0.2.x+to+0.3
> >>
> >> I followed the note to clear my scriptCache (for both 1.0.2 and
> >> 1.0.3-SNAPSHOT just in case ;), removed the current 0.2 version of the
> >> plugin (both .zip and exploded) and did the 'grails install-plugin
> >> acegi'.
> >> The plugin list cache is rebuilt and the plugin appears to start
> >> installation, but I'm immediately confronted with an error:
> >>
> >>
> >>    [delete] Deleting directory
> >> /Users/pbarnes/code/java/projects/MyProject/plugins/acegi-0.3
> >>     [mkdir] Created dir:
> >> /Users/pbarnes/code/java/projects/MyProject/plugins/acegi-0.3
> >>     [unzip] Expanding:
> >> /Users/pbarnes/code/java/projects/MyProject/plugins/grails-acegi-0.3.zip
> >> into /Users/pbarnes/code/java/projects/MyProject/plugins/acegi-0.3
> >> Compiling plugin acegi-0.3 ... ...
> >>     [mkdir] Created dir:
> >> /Users/pbarnes/.grails/1.0.3-SNAPSHOT/projects/MyProject/classes
> >>   [groovyc] Compiling 49 source files to
> >> /Users/pbarnes/.grails/1.0.3-SNAPSHOT/projects/MyProject/classes
> >>     [javac] Compiling 49 source files to
> >> /Users/pbarnes/.grails/1.0.3-SNAPSHOT/projects/MyProject/classes
> >> /Users/pbarnes/.grails/1.0.3-SNAPSHOT/projects/MyProject/generated-java-
> >>sou rce/LoginController.java:19: cannot find symbol
> >> symbol  : class AuthenticateService
> >> location: class LoginController
> >> public AuthenticateService getAuthenticateService() { return
> >> (AuthenticateService)null;}
> >>
> >> (followed by several more javac errors for everywhere
> >> AuthenticateService is referenced)
> >>
> >>
> >> Apparently the plugin's grails-app/services/AuthenticateService.groovy
> >> file
> >> is not added to the classpath?
> >>
> >> I'm guessing I missed a step somewhere... thoughts?
> >>
> >> Thanks in advance,
> >>
> >> Phil..
> >>
> >> Tsuyoshi Yamamoto wrote:
> >> > The Grails Acegi plugin team is pleased to announce the release of
> >> > version 0.3 of the plugin.
> >> >
> >> > The Acegi plugin simplifies the work involved in integrating Acegi
> >> > Security
> >> > into Grails applications. By combining a core configuration with
> >> > user-specified options and overrides, it creates a best-practice
> >> > configuration of Spring Security in any Grails application while
> >>
> >> allowing
> >>
> >> > developers to make config changes without having to deal with the
> >> > complexity
> >> > of using Spring Security directly.
> >> >
> >> > This release includes significant enhancements, including:
> >> >  - upgrade to Spring Security 2.0
> >> >  - new support for LDAP/ActiveDirectory logins, including the option
> >> > to store
> >> > roles in the database, infer them from LDAP group membership, or both
> >> >  - new support for OpenID logins that integrate with your
> >> > application's domain
> >> > Users and Roles
> >> >  - made more of the configuration user-configurable, e.g. filter,
> >>
> >> logout
> >>
> >> > handler, and role voter lists are now configurable - you can easily
> >> > add your
> >> > own, remove existing, or change the order
> >> >  - new configuration attributes were added, including mail server port
> >> > and mail server JavaMailProperties to allow more control over mail
> >> > sending and to
> >> > allow usage of GMail SMTP
> >> >  - GrailsUser is now an interface, and GrailsDaoImpl was reworked to
> >>
> >> make
> >>
> >> > subclassing or replacement easier to allow custom database user
> >> > loading - added full suite of unit and integration tests, and also
> >> > automated functional tests using WebTest
> >> >  - new wrapper for Acegi events that calls optional
> >> > application-defined closures when events fire
> >> >  - moved all classes to packages
> >> >  - enhanced Ajax login support including a brief tutorial
> >> >  - lots of updates to the documentation
> >> > (http://grails.org/AcegiSecurity+Plugin)
> >> >  - bug fix - bypassed DigestUtils for password encryption to allow use
> >>
> >> of
> >>
> >> > any
> >> > supported codec
> >> >
> >> > The plugin and source code are available for download here:
> >> >
> >> >  http://plugins.grails.org/grails-acegi/tags/RELEASE_0_3/
> >> >
> >> > For more information on the Grails Acegi plugin, visit the Grails wiki
> >> > page:
> >> >
> >> >   http://grails.org/AcegiSecurity+Plugin
> >> >
> >> > Feedback, suggestions for improvement and contributions are always
> >> > welcome.
> >> >
> >> >
> >> > Cheers!
> >> > ----------------
> >> > The Grails Acegi plugin team
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe from this list, please visit:
> >> >
> >> >     http://xircles.codehaus.org/manage_email
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >     http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





Re: ANN: Acegi Plugin 0.3 released

by Peter Cold :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i'm out.  Back to 0.2.1 for me.  I can't seem to get ajax authentication working correctly with the 0.3 plugin.



On Fri, Jun 13, 2008 at 6:13 PM, Peter Cold <pete@...> wrote:
Argh, I think I spoke too soon.  I'm having some trouble with the Ajax logins.

auth denied after an ajax login is redirecting to the errorPage, not the ajaxErrorPage as it should.  I'm pretty sure this is a bug because if I reset my errorPage config value to the value that I have in my ajaxErrorPage everything works (expect that now my non ajax error page is the ajax error page :( )

also, successful auth after an ajax action is redirecting to '/' when it should redirect to the ajax action that was called before the login attempt. 

Has anyone else seen this behavior?

-Peter







On Fri, Jun 13, 2008 at 12:35 PM, Peter Cold <pete@...> wrote:
I finally got around to doing this upgrade. The docs were a huge help and I had no problems.  Thanks Burt!



On Thu, May 15, 2008 at 8:29 AM, Burt Beckwith <burt@...> wrote:
Yeah, that's a good point. I'll update the docs.

Thanks
Burt

On Thursday 15 May 2008 11:25:35 am pbarnes wrote:
> Ah, thanks Burt - this was my issue.
>
> I kind of 'glossed over' this note in my review of the "Upgrade"
> documentation, since *I* wasn't calling any part of Acegi security
> explicitly within my code (just using the defaults with requestMap via the
> manager).
>
> I had previously used the generators to create domain-auths and manager and
> thus I guess one of these generators created the LoginController (in
> addition to Logout, User, Role and Requestmap controllers) within my
> application.  It was these auto-generated controller classes that were
> throwing the exception.
>
> Might I suggest adding to the upgrade documentation that these references
> need to be updated (or the controllers removed) BEFORE installing the
> plugin or else you'll receive compilation errors?
>
> Thanks again,
>
> Phil..
>
> burtbeckwith wrote:
> > AuthenticateService was moved to a package to allow usage in projects
> > that don't put everything in the default package. You'll need to add an
> > import for
> > it (org.grails.plugins.springsecurity.service.AuthenticateService).
> >
> > This is described in the upgrade page -
> > http://grails.org/AcegiSecurity+Plugin+-+Upgrading+from+0.2.x+to+0.3
> >
> > Burt
> >
> > On Thursday 15 May 2008 10:41:33 am pbarnes wrote:
> >> Hi all,
> >>
> >> First thanks for the work on this plugin, I've had good success with the
> >> 0.2 version.
> >>
> >> I'm trying to upgrade a simple application to 0.3.0.  I'm running a
> >> Grails-1.0.3-SNAPSHOT release (due to this bug:
> >> http://jira.codehaus.org/browse/GRAILS-2689 ), in case that might make a
> >> difference.
> >>
> >> I'm also following the upgrade instructions here:
> >> http://grails.org/AcegiSecurity+Plugin+-+Upgrading+from+0.2.x+to+0.3
> >>
> >> I followed the note to clear my scriptCache (for both 1.0.2 and
> >> 1.0.3-SNAPSHOT just in case ;), removed the current 0.2 version of the
> >> plugin (both .zip and exploded) and did the 'grails install-plugin
> >> acegi'.
> >> The plugin list cache is rebuilt and the plugin appears to start
> >> installation, but I'm immediately confronted with an error:
> >>
> >>
> >>    [delete] Deleting directory
> >> /Users/pbarnes/code/java/projects/MyProject/plugins/acegi-0.3
> >>     [mkdir] Created dir:
> >> /Users/pbarnes/code/java/projects/MyProject/plugins/acegi-0.3
> >>     [unzip] Expanding:
> >> /Users/pbarnes/code/java/projects/MyProject/plugins/grails-acegi-0.3.zip
> >> into /Users/pbarnes/code/java/projects/MyProject/plugins/acegi-0.3
> >> Compiling plugin acegi-0.3 ... ...
> >>     [mkdir] Created dir:
> >> /Users/pbarnes/.grails/1.0.3-SNAPSHOT/projects/MyProject/classes
> >>   [groovyc] Compiling 49 source files to
> >> /Users/pbarnes/.grails/1.0.3-SNAPSHOT/projects/MyProject/classes
> >>     [javac] Compiling 49 source files to
> >> /Users/pbarnes/.grails/1.0.3-SNAPSHOT/projects/MyProject/classes
> >> /Users/pbarnes/.grails/1.0.3-SNAPSHOT/projects/MyProject/generated-java-
> >>sou rce/LoginController.java:19: cannot find symbol
> >> symbol  : class AuthenticateService
> >> location: class LoginController
> >> public AuthenticateService getAuthenticateService() { return
> >> (AuthenticateService)null;}
> >>
> >> (followed by several more javac errors for everywhere
> >> AuthenticateService is referenced)
> >>
> >>
> >> Apparently the plugin's grails-app/services/AuthenticateService.groovy
> >> file
> >> is not added to the classpath?
> >>
> >> I'm guessing I missed a step somewhere... thoughts?
> >>
> >> Thanks in advance,
> >>
> >> Phil..
> >>
> >> Tsuyoshi Yamamoto wrote:
> >> > The Grails Acegi plugin team is pleased to announce the release of
> >> > version 0.3 of the plugin.
> >> >
> >> > The Acegi plugin simplifies the work involved in integrating Acegi
> >> > Security
> >> > into Grails applications. By combining a core configuration with
> >> > user-specified options and overrides, it creates a best-practice
> >> > configuration of Spring Security in any Grails application while
> >>
> >> allowing
> >>
> >> > developers to make config changes without having to deal with the
> >> > complexity
> >> > of using Spring Security directly.
> >> >
> >> > This release includes significant enhancements, including:
> >> >  - upgrade to Spring Security 2.0
> >> >  - new support for LDAP/ActiveDirectory logins, including the option
> >> > to store
> >> > roles in the database, infer them from LDAP group membership, or both
> >> >  - new support for OpenID logins that integrate with your
> >> > application's domain
> >> > Users and Roles
> >> >  - made more of the configuration user-configurable, e.g. filter,
> >>
> >> logout
> >>
> >> > handler, and role voter lists are now configurable - you can easily
> >> > add your
> >> > own, remove existing, or change the order
> >> >  - new configuration attributes were added, including mail server port
> >> > and mail server JavaMailProperties to allow more control over mail
> >> > sending and to
> >> > allow usage of GMail SMTP
> >> >  - GrailsUser is now an interface, and GrailsDaoImpl was reworked to
> >>
> >> make
> >>
> >> > subclassing or replacement easier to allow custom database user
> >> > loading - added full suite of unit and integration tests, and also
> >> > automated functional tests using WebTest
> >> >  - new wrapper for Acegi events that calls optional
> >> > application-defined closures when events fire
> >> >  - moved all classes to packages
> >> >  - enhanced Ajax login support including a brief tutorial
> >> >  - lots of updates to the documentation
> >> > (http://grails.org/AcegiSecurity+Plugin)
> >> >  - bug fix - bypassed DigestUtils for password encryption to allow use
> >>
> >> of
> >>
> >> > any
> >> > supported codec
> >> >
> >> > The plugin and source code are available for download here:
> >> >
> >> >  http://plugins.grails.org/grails-acegi/tags/RELEASE_0_3/
> >> >
> >> > For more information on the Grails Acegi plugin, visit the Grails wiki
> >> > page:
> >> >
> >> >   http://grails.org/AcegiSecurity+Plugin
> >> >
> >> > Feedback, suggestions for improvement and contributions are always
> >> > welcome.
> >> >
> >> >
> >> > Cheers!
> >> > ----------------
> >> > The Grails Acegi plugin team
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe from this list, please visit:
> >> >
> >> >     http://xircles.codehaus.org/manage_email
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >     http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





< Prev | 1 - 2 | Next >
LightInTheBox - Buy quality products at wholesale price