Download and install the demo application from forge: https://www.outsystems.com/forge/component-overview/3573/oauth2-provider
Open the demo application in the browser to see the OAuth2 authorization in action. Open it in Service Studio to understand how to secure a REST API with OAuth2, and how to use it for access control.