I created two service in Kong.And I want to issue a token for each consumer, but this token is only valid for one service.So I have followed the steps as described in the documentation to create ‘/oauth2/token’ for each service.
‘/service1/oauth2/token’
‘/service2/oauth2/token’
Now, I want to be able to get the token through a unified ‘/oauth2/token’ interface.
How can I achieve it?
Late to the party, but has something changed in this respect?
This is of interest to me as well, since it’s counter-intuitive for a consumer to have to login with a specific path each time depending on the service and not have a centralised URL to login, like someone would imagine using an API Gateway.