Skip to content

Commit

Permalink
Fix issue authlib#94: Support for authlib 1.0.0
Browse files Browse the repository at this point in the history
Use FlaskOAuth2App instead of FlaskRemoteApp since authlib 1.0.0
refactored accordingly and removed FlaskRemoteApp.
  • Loading branch information
birkjernstrom committed May 13, 2022
1 parent 635823a commit 3b5c592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loginpass/_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def login(name):


def register_to(oauth, backend_cls):
from authlib.integrations.flask_client import FlaskRemoteApp
from authlib.integrations.flask_client import FlaskOAuth2App

class RemoteApp(backend_cls, FlaskRemoteApp):
class RemoteApp(backend_cls, FlaskOAuth2App):
OAUTH_APP_CONFIG = backend_cls.OAUTH_CONFIG

oauth.register(RemoteApp.NAME, overwrite=True, client_cls=RemoteApp)

0 comments on commit 3b5c592

Please sign in to comment.