Support oauth token in URL

This commit is contained in:
Eliot Berriot 2019-05-03 12:23:45 +02:00
parent e3b0efb25f
commit c8fcf1b0d9
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 62 additions and 19 deletions

View file

@ -374,6 +374,7 @@ OAUTH2_PROVIDER = {
"REFRESH_TOKEN_EXPIRE_SECONDS": 3600 * 24 * 15,
"AUTHORIZATION_CODE_EXPIRE_SECONDS": 5 * 60,
"ACCESS_TOKEN_EXPIRE_SECONDS": 60 * 60 * 10,
"OAUTH2_SERVER_CLASS": "funkwhale_api.users.oauth.server.OAuth2Server",
}
OAUTH2_PROVIDER_APPLICATION_MODEL = "users.Application"
OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL = "users.AccessToken"