Override Oauth2 authentication for checking one more field other than username and password

How to override Oauth2 authentication for checking one more field other than username and password.

Hi faizy, can you explain what exactly you are trying to do.

In Oauth2 authentication, only username and password is checking for authentication. But I need to check an extra field. How it possible ?