I am developing a simple html5 frontend application that retrieves an OAuth2.0 access token from a generic OAuth 2.0 provider (e.g. Keycloak and alike). Assuming the user has previously created a client and user on the authentication server (e.g. Keycloak) he then provides the following parameters on my web page:
- Authorization URL
- Access token URL
- Client ID
- Client secret
Sort of a Postman OAuth2.0 client:

Note: ClientId and Client secret are not saved anywhere, they are provided by the user.
My question is: Is there any javascript library to achieve such behaviour (Postman)?