Skip to main content
Answer

Authorization Code Expire Time

  • November 9, 2020
  • 1 reply
  • 372 views

I'm attempting to implement 3-legged OAuth and I saw a post from 3 years ago stating the Authorization Code expire time is 5 minutes. Has this changed since then? It seems to be much shorter as by the time I copy/paste my authorization code into my app (after about 5-10 seconds), I get an error "Authorization Code is Expired".
I'm implementing a desktop application but the authorization code request is done via a web page, so I was thinking of having the user authenticate and then copy/paste the auth code into the desktop app which then requests a token.

Please let me know if I need to change my approach due to the expire time.
Thanks!

Best answer by PhongVu

I will verify this with the platform team. Meanwhile, absolutely you should change the approach. Copy/paste the code in this way is a hack and should be avoid.

1 reply

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • Answer
  • November 10, 2020

I will verify this with the platform team. Meanwhile, absolutely you should change the approach. Copy/paste the code in this way is a hack and should be avoid.