Hi @varun2412 ,
As per my understanding AEM supports 3 legged Oauth. But for 2 legged, the implementation would be same as 3-legged except you won't pass token and secret but empty strings. Client Application will need to have its client ID and secret stored in a secure manner. You can follow below...