Customs sso for discourse

I have created sso using spring boot ,oauth2.0 and once the login is successful, it is not redirect to discourse forum.

Does your sso properly return users back to the client?
This is something you have to check in your sso