How to Configure OAuth using Server2Server Trust in SharePoint 2013

How to Configure OAuth using Server2Server Trust in SharePoint 2013