The issue that I am facing is very confusing.
If the user who is trying to login using OAuth is already signed in at WordPress then the OAuth process completes without any issues.
However if the user has to fill the login form on WordPress then user gets redirected to the Front Page of WordPress instead of being redirected to redirect uri, set in OAuth Server client settings.
Due to this reason I can’t say whether it is working for me or not.
Any pointers in debugging will be much appreciated.