This method is available through the UI and is implemented via the Login method.
Configuration Parameters
Login Request type
Basic Auth: The client_id and client_secret are sent in the Authorization header as a Basic authorization, e.g. Authorization: Basic base64(client_id:client_secret).
Post Form: The client_id and client_secret are sent as form data in the POST request body, e.g., {login_url}?client_id=client_id&client_secret=client_secret.
Client ID: The client_id value
Client Secret: The client_secret value
Access Token URL: The URL where the access token is requested, e.g., https://login-demo.io/oauth/v2/oauth-token
Scope: The scope of the access token. It is specific per API and can be left empty.
JSON
In the underlying JSON, the method is implemented as follows:
Place your secret into the config.#__CLIENT_SECRET and ID into the config.#__CLIENT_ID parameter. The Authorization header is then constructed using the concat function.