as pointed out in this post, ##class(Security.System).ExportAll() does not export the OAuth settings within an environment.
This would be a nice to have for Server Migration but also environment Migration instead of having to build or manually export as it is suggested and import it into the new environment.
Thank you for submitting the idea. The status has been changed to "Needs review".
Stay tuned!