Using this as token generator for our different api's. we will use identityserver4 to protect our api built from dotnetframework not the .netcore
Found the solution.It can be solved using identityserver3.accesstoken https://github.com/IdentityServer/IdentityServer4/issues/1908