Skip to content

Commit

Permalink
chore: Update .codegen.json with commit hash of codegen and `open…
Browse files Browse the repository at this point in the history
…api` spec (#361)
  • Loading branch information
box-sdk-build authored Oct 29, 2024
1 parent 37468d6 commit 0850f16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "7bbe6de", "specHash": "90cf4e4", "version": "1.5.1" }
{ "engineHash": "0a79fc3", "specHash": "90cf4e4", "version": "1.5.1" }
8 changes: 4 additions & 4 deletions box_sdk_gen/box/jwt_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,12 @@ def with_user_subject(
return new_auth

def with_enterprise_subject(
self, user_id: str, *, token_storage: TokenStorage = None
self, enterprise_id: str, *, token_storage: TokenStorage = None
) -> 'BoxJWTAuth':
"""
Create a new BoxJWTAuth instance that uses the provided enterprise ID as the subject of the JWT assertion.
:param user_id: The id of the enterprise to authenticate
:type user_id: str
:param enterprise_id: The id of the enterprise to authenticate
:type enterprise_id: str
:param token_storage: Object responsible for storing token in newly created BoxJWTAuth. If no custom implementation provided, the token will be stored in memory., defaults to None
:type token_storage: TokenStorage, optional
"""
Expand All @@ -386,7 +386,7 @@ def with_enterprise_subject(
new_config: JWTConfig = JWTConfig(
client_id=self.config.client_id,
client_secret=self.config.client_secret,
enterprise_id=user_id,
enterprise_id=enterprise_id,
user_id=None,
jwt_key_id=self.config.jwt_key_id,
private_key=self.config.private_key,
Expand Down

0 comments on commit 0850f16

Please sign in to comment.