Forum

Browse topics, discover Works With Legrand community!

Oauth2 Python get code issue

<div class="post-content">Hi,I'm tryng to get the "code" according the tutorial.

I'm using a get request I, the request returns 200, but I can't find the code, I get only webpage.

I try to copy the url in the browser, I click accept on the page that appears, but I still not find the code.

Could you please help me?

Thanks a lot

Davide

</div>

Hello Davide,

When you copy/paste your /authorize request in a web browser, it opens a page asking you to accept consents

Once consent accepted, you are redirected to a blank page. In URL bar, you will find needed code

Example :

https://www.test.com/?code=eyJraWQiOiJjcGltY29yZV8wOTI1MjAxNSIsInZlciI6IjEu........

 

Have a good day,

Leslie - Community Manager

Hi Leslie,

I'm not redirected to a blank page, but I redirected to the page I inserted when I had registered my application and in the url there is not the code.

Davide,

Can you please send me your GET /authorize request + the response you retrieve via the contact form ? (for privacy of your informations)

I'll then try to see what is going wrong

Have a good day,

Leslie - Community Manager

Hi Leslie,

I find the problem, my application redirect me in another page and delete the code parameter.

I solved.

Thanks a lot

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Information

watch_later 1 month ago
message4 replies
people2 participants