hmrc / vat-api

Apache License 2.0
66 stars 17 forks source link

redirect_uri is invalid #862

Closed greywidget closed 3 years ago

greywidget commented 3 years ago

I've been using my own CLI solution for mtd VAT since it came out, with a redirect uri of urn:ietf:wg:oauth:2.0:oob and it works fine.

I'm currently working on a Webserver based solution and I would like to redirect back to http://localhost:8000/authorise where I am currently running a Django Dev server during development.

On the Developer Hub I have defined a redirect uri of http://localhost:8000/authorise I keep getting a response of {"error":"invalid_request","error_description":"redirect_uri is invalid"}

In my application I have tried the following values for my redirect_url query parameter:

I have also tried accessing the url using curl and postman and get the same error.

I have also tried a bunch of other variations such as https (not supported natively by the Django Dev Sever) and urls which finish at the port e.g ...8000 and ...8000/

I'm not sure what else to try. I'd be grateful to find answers to the following questions:

  1. Is my Develper Hub redirect url of http://localhost:8000/authorise valid?
  2. Given 1, what exactly should I be passing for the query parameter.

Thanks kindly

greywidget commented 3 years ago

Sorry - User error... Too many Apps.