OAuth2 authentication examples

Hello,  In the process of doing an Proof Of Concept Client Web App (non-Infor) to IDM and looking for documentation examples of authenticating to the ION API Gateway.  My understanding is that this can only be done via OAuth2?

Thank you.