API - add refresh token

This commit is contained in:
Sam
2022-05-27 14:18:50 +02:00
parent 64b813a44b
commit 887553dd5d
5 changed files with 10 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
from authlib.oauth2.rfc7636 import CodeChallenge
from flask import Flask
from .grants import AuthorizationCodeGrant
from .grants import AuthorizationCodeGrant, RefreshTokenGrant
from .server import authorization_server
@@ -12,3 +12,4 @@ def config_oauth(app: Flask) -> None:
authorization_server.register_grant(
AuthorizationCodeGrant, [CodeChallenge(required=True)]
)
authorization_server.register_grant(RefreshTokenGrant)