Import urlencode for implicit grant to work. Implicit grant places data in fragment, not query string.