oauth is a standard protocol and you can configure for a custom one that matches the protocol. you will need to know which flow they implement, and configure the oauth settings to match their requirements. you will need to know the scopes and claims they will support. you config with AddOpenIdConnect
here are samples for different providers:
https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/tree/dev/src