-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add Verbose or Debug log to indicate which credential was selected #85
Comments
Good idea 👍 |
Looks like I can pick up the events fairly easily and filter a bit by the text:
The important implementation will be to ensure that we can log properly from the AzAuth.Core project and not only AzAuth.PS, but I have a plan for that as well. |
@PalmEmanuel sorry I should have made a note of that since I noticed you were using Azure.Identity, I did the same in a connection handler I made. The eventArgs are actually pretty comprehensive so you can find the appropriate log through that. I marshalled it back to the cmdlet via a blocking collection and did WriteDebug/WriteVerbose from there. https://github.com/JustinGrote/JAz.LogIngestion/blob/main/Source/Client.PowerShell/Common/AzureDebugLogger.cs |
@JustinGrote Yeah I was thinking of using that approach, thanks for the example! Already using a BlockingCollection in my DeviceCode flow, so it shouldn't be too tricky to get working. |
The text was updated successfully, but these errors were encountered: