Odoo's REST API authentication system, by default, requires the usage of a username and password combination. You may, however, setup the system to accept authentication with an API token rather than a password.
To enable API token authentication in Odoo 15, you will need to follow these steps:
Create an API user with the required permissions. This user will be used to generate the API token that will be used for authentication.
Generate an API token for the API user. You can do this by navigating to the user's profile in Odoo, selecting the "Access Rights" tab, and clicking on the "Generate" button next to the API token field.
Once you have generated the API token, you can use it in place of the user's password to authenticate your API requests. You will need to include the token in the "Authorization" header of your API requests, using the following format: "Bearer [token]".
You can now use the Odoo REST API with the API token to authenticate your requests.
Please note that you will need to configure the Odoo server to allow API token authentication. To do this, you will need to set the "api_key" configuration parameter to "True" in the Odoo configuration file. You can find more information about configuring the Odoo server in the official Odoo documentation. https://www.odoo.com/documentation/master/developer/reference/external_api.html
Thanks Dear for your answer,
It works with jsonrpc 2.0 with basic authentication, need to check if I could use oauth2.0.
Best Regards,