You can use the OAuth samples file to try various APIs to solve the OAuth use cases. These samples cover a wide range of functionalities:
Auto-configuring Access Manager by creating scopes and resource server, and registering an OAuth client.
Execute various OAuth flows and return the access token, refresh token, and ID token as per requirement.
Manage tokens by refreshing a token or revoking a token.