Authorizing rich-client devices without a web browser