-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
chore(logs): add additional logging around auth updates COMPASS-9366 #215
Conversation
prefs: { | ||
'profile.password_manager_enabled': false, | ||
credentials_enable_service: false, | ||
}, |
There was a problem hiding this comment.
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.
authStateId: state.id, | ||
isCurrentAuthAttemptSet: !!state.currentAuthAttempt, | ||
tokenSetId: params.refreshToken, | ||
}); |
There was a problem hiding this comment.
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.
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).