Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ async def acquire_token_on_behalf_of(
)

if "access_token" not in token:
logger.error(
f"Failed to acquire token on behalf of user: {user_assertion}"
)
logger.error(f"Failed to acquire token on behalf of user.")
Comment thread
rodrigobr-msft marked this conversation as resolved.
raise ValueError(
authentication_errors.FailedToAcquireToken.format(str(token))
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def get_user_token(self, magic_code: str | None = None) -> TokenResponse:
magic_code=magic_code,
)
if token_response:
logger.info("User token obtained successfully: %s", token_response)
logger.info("User token obtained successfully")
self._flow_state.expiration = (
datetime.now(timezone.utc).timestamp() + self._default_flow_duration
)
Expand Down Expand Up @@ -315,10 +315,7 @@ async def continue_flow(self, activity: Activity) -> _FlowResponse:
self._flow_state.expiration = (
datetime.now(timezone.utc).timestamp() + self._default_flow_duration
)
logger.debug(
"OAuth flow completed successfully, got TokenResponse: %s",
token_response,
)
logger.debug("OAuth flow completed successfully, got a token response.")

return _FlowResponse(
flow_state=self._flow_state.model_copy(),
Expand Down
Loading