Fog Light REST API Auth Token for AD managed user

I am trying to use the REST API but I always get this error:

{"status":0,"data":"token is invalid","code":"loginFail"}

I am sending the authorization token generated via the dashboard as described in the documentation. To debug, I created a local user and followed the same steps. As expected, FogLight returned an access-token. Is this a bug that authorization tokens for AD-managed users don't work against the security/login endpoint?