Moved request parameters to constants. Fixed auth for device pinned acco...

...unts