Cannot get token for Management API

What did you do on the .net app to get a token? Was it a permission/scope add?