Skip to content

chore(logs): add additional logging around auth updates COMPASS-9366 #215

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Jun 3, 2025

COMPASS-9366

This pr adds additional logs around our auth flow as well as adds an id to our auth state object. This id should be useful for following an auth flow, and possibly showing why outdated auth calls are being attempted (more context in the ticket).

prefs: {
'profile.password_manager_enabled': false,
credentials_enable_service: false,
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulled this in from the node update pr. This prevents the popups about passwords that get in the way of local testing.

@Anemy Anemy marked this pull request as ready for review June 5, 2025 18:47
authStateId: state.id,
isCurrentAuthAttemptSet: !!state.currentAuthAttempt,
tokenSetId: params.refreshToken,
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fwiw I still think this would be useful:

Log when we enter/leave requestToken(), and in particular log whether state.currentAuthAttempt is set or not. Include the UserOIDCAuthState id as well, and the values of the known fields of serverOIDCMetadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants