If you are planning to use external OAuth provider to access content in
AEM, you have to write a bit of custom code, do check the below link.
AEM does have a better integration with SAML for this. Check the below
blog for the custom auth handler
https://aemcorner.com/adobe-granite-oauth-authentication-handler/