Skip to content

Commit

Permalink
Update imports in Flask OAuth2 integration
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Jan 2, 2019
1 parent 8b535a8 commit 5564d2d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions authlib/flask/oauth2/authorization_server.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from werkzeug.utils import import_string
from flask import Response, json
from authlib.specs.rfc6749 import (
from authlib.oauth2 import (
OAuth2Request,
ClientAuthentication,
AuthorizationServer as _AuthorizationServer,
)
from authlib.specs.rfc6749 import ClientAuthentication
from authlib.specs.rfc6750 import BearerToken
from authlib.common.security import generate_token
from authlib.common.encoding import to_unicode
Expand Down
2 changes: 1 addition & 1 deletion authlib/flask/oauth2/cache.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from authlib.common.security import generate_token
from authlib.specs.rfc6749.grants import AuthorizationCodeGrant
from authlib.oauth2.rfc6749.grants import AuthorizationCodeGrant


class AuthorizationCode(dict):
Expand Down
12 changes: 11 additions & 1 deletion authlib/oauth2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
from .base import OAuth2Error
from .rfc6749 import (
OAuth2Request,
AuthorizationServer,
ClientAuthentication,
ResourceProtector,
)

__all__ = ['OAuth2Error']
__all__ = [
'OAuth2Error',
'OAuth2Request', 'AuthorizationServer',
'ClientAuthentication', 'ResourceProtector',
]

0 comments on commit 5564d2d

Please sign in to comment.