Note that there are some explanatory texts on larger screens.

plurals
  1. POCreating a custom authentication with Acegi/Spring Security
    primarykey
    data
    text
    <p>I'm having trouble discovering exactly what I need to implement in order to use a custom authentication method with my web application using Spring Security. I have a Grails application with the Spring Security plugin that currently uses the standard user/password authentication with a browser form. This is working correctly. </p> <p>I need to implement a mechanism alongside of this that implements a type of <a href="http://en.wikipedia.org/wiki/Message_authentication_code" rel="noreferrer">MAC</a> authentication. If the HTTP request contains several parameters (e.g. a user identifier, timestamp, signature, etc.) I need to take those parameters, perform some hashing and signature/timestamp comparisons, and then authenticate the user.</p> <p>I'm not 100% sure where to start with this. What Spring Security classes do I need to extend/implement? I have read the <a href="http://www.acegisecurity.org/guide/springsecurity.html" rel="noreferrer">Reference Documentation</a> and have an okay understanding of the concepts, but am not really sure if I need a Filter or Provider or Manager, or where/how exactly to create <a href="http://static.springframework.org/spring-security/site/apidocs/org/springframework/security/Authentication.html" rel="noreferrer">Authentication</a> objects. I've messed around trying to extend <a href="http://static.springframework.org/spring-security/site/apidocs/org/springframework/security/ui/AbstractProcessingFilter.html" rel="noreferrer">AbstractProcessingFilter</a> and/or implement <a href="http://static.springframework.org/spring-security/site/apidocs/org/springframework/security/providers/AuthenticationProvider.html" rel="noreferrer">AuthenticationProvider</a>, but I just get caught up understanding how I make them all play nicely.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload