Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix jwt import errors #711

Merged
merged 1 commit into from Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion boxsdk/__init__.py
@@ -1,4 +1,4 @@
from .auth import JWTAuth, OAuth2
from .auth import JWTAuth, OAuth2, CCGAuth
from .client import * # pylint:disable=wildcard-import,redefined-builtin
from .exception import * # pylint:disable=wildcard-import
from .object import * # pylint:disable=wildcard-import,redefined-builtin
Expand Down
1 change: 1 addition & 0 deletions boxsdk/auth/__init__.py
Expand Up @@ -4,6 +4,7 @@
from .jwt_auth import JWTAuth
except ImportError:
JWTAuth = None # If extras[jwt] are not installed, JWTAuth won't be available.
from .ccg_auth import CCGAuth
from .oauth2 import OAuth2
try:
from .redis_managed_oauth2 import RedisManagedOAuth2
Expand Down
2 changes: 1 addition & 1 deletion boxsdk/auth/jwt_auth.py
Expand Up @@ -29,7 +29,7 @@ def __init__(
enterprise_id: Optional[str],
jwt_key_id: str,
rsa_private_key_file_sys_path: Optional[str] = None,
rsa_private_key_passphrase: Optional[bytes] = None,
rsa_private_key_passphrase: Optional[Union[str, bytes]] = None,
user: Optional[Union[str, 'User']] = None,
store_tokens: Callable = None,
box_device_id: str = '0',
Expand Down
3 changes: 2 additions & 1 deletion boxsdk/auth/server_auth.py
Expand Up @@ -4,7 +4,8 @@
from datetime import datetime
from typing import Optional, Tuple, TYPE_CHECKING, Union, Any

from boxsdk import OAuth2, BoxOAuthException
from boxsdk.auth.oauth2 import OAuth2
from boxsdk.exception import BoxOAuthException
from boxsdk.config import API
from boxsdk.object.user import User

Expand Down