I have an Angular 7 app that talks to IS4 via the oidc-client and also talks to a secured API. Everything is fine from the login and interaction point of view, however I wanted to implement user registration and I have read different opinions in different places regarding the question of
where to place it?
Should it be in the IS4 app, should it be in the API? Some people say that IS should be "only" login/log-out and the rest should live elsewhere. Some others extend their own version of Identity Server and implement registration there.
I wouldn't be asking the question if I didn't want to LOG-IN automatically after a successful registration. I register my users in the DB via the API however I want to log them in against my IS. Now, I don't know if that's a good practice and assuming it is, whether I could simply use the SignInManager or should I call into the IS4 via HTTP or some other method. The other alternative would be to try to log in from my Angular app once the registration is successful however I'd like to bypass the log in screen and hit the endpoint with the payload directly. Does that make sense?
Any suggestions/ ideas?
Thanks!