Announcement Announcement Module
Collapse
No announcement yet.
Autologin after user registration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment

    Working...
    X