Description
Hi!
Is your feature request related to a problem? Please describe.
For the grant_type=authorization_code
:
It was kind of annoying that you have just a few seconds to make the call to authorize the App and get the code, I always had to extend the expire time.
Describe the solution you'd like
I suggest change the default time (https://github.com/jazzband/django-oauth-toolkit/blob/master/oauth2_provider/settings.py#L52)
from
"AUTHORIZATION_CODE_EXPIRE_SECONDS": 60
to
"AUTHORIZATION_CODE_EXPIRE_SECONDS": 600
(I think it's just there)
Describe alternatives you've considered
The alternative i'm currently using is just adding this key to my settings
OAUTH2_PROVIDER = {
...,
'AUTHORIZATION_CODE_EXPIRE_SECONDS': 600,
...,
}
Additional context
I'm only suggestting this change because i spent quite some time looking how to modify this and, i found out that there's a recommendation already in the docs.
https://www.rfc-editor.org/rfc/rfc6749#section-4.1.2
A maximum authorization code lifetime of 10 minutes is RECOMMENDED.
Of course, probably i might being missing something and in that case just discard this issue.
btw thanks for the library!