In my application, I am using Passport for Authentication. I have created a Password grant client for generating access tokens for our mobile and web app.
Now I have to add a third-party client that can access some of our resources. For this, I created a client.
Now for a user that can authorize this third-party client for access the resources on behalf of him have to come to our website and login and then needs to authorize to get the authorization code. This I want to do in our own web app. For that, I need to create an API where as a request I will receive client_id, client_secret, grant_type, redirect_url, scopes, etc and return the authorization code.
But nowhere I see an option to create a custom API for generating the authorization code?
-- Updated
Basically, passport has a dedicated view for authorizing and generating authorization code. I want to do it through API. This API will be available for our web apps.