I have a WepApi 2 project that manage to create tokens using /token endpoint, the endpoint function is inside a provider called ApplicationOAuthProvider and it uses
ApplicationOAuthProvider