I have some follow-up questions based on this thread:
Spring security authentication based on request parameter
The desired flow is:
External service is already registered with my application and possesses a consumer key & secret given by my application.
External service sends a request for a token to my application by passing the consumer key & secret.
My application authenticates the consumer key & secret and provides a token (with an expiry time).
External application sends the token for subsequent requests which is validated by my application (presumably using the approach in the above link).
The flow seems similar to OAuth 1 but I do not wish to present a login & access grant page to the user (like Facebook or Twitter). The user must be authenticated behind the scenes.
Instead of having to write code for token handling & authentication, is there any other option available in Spring Security to address this?
Also I wish to retain my existing form-based login to my application for direct users of the application.
Thanks in advance.