Results 1 to 2 of 2

Thread: Autologin after user registration

  1. #1
    Join Date
    Nov 2010
    Posts
    5

    Default Autologin after user registration

    Is it possible?. I want to call an API to create an account (with user and password), and retrieve the token session information.

    I've seen some examples with security, but nothing than include oauth.

    Any hint?

    Thanks

  2. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    I suppose there's nothing to stop you doing that (e.g. for a hard-coded default scope), but since there is no user regsitration feature per se in Spring Security, you must be writing it yourself. Your registration handler could grab a token for the new user and render it. This seems like an auth server feature so the TokenGranter would be the right place to get a token.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •