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:
Unencoded: http://localhost:8000/authorise
urlencoded using urllib.parse.quote(): http%3A//localhost%3A8000/authorise
urlencoded using urllib.parse.quote_plus(): http%3A%2F%2Flocalhost%3A8000%2Fauthorise
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:
Is my Develper Hub redirect url of http://localhost:8000/authorise valid?
Given 1, what exactly should I be passing for the query parameter.
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:
http://localhost:8000/authorise
http%3A//localhost%3A8000/authorise
http%3A%2F%2Flocalhost%3A8000%2Fauthorise
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:
http://localhost:8000/authorise
valid?Thanks kindly