-
Notifications
You must be signed in to change notification settings - Fork 245
Westinm/downstreamapi-logging #2206
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
Conversation
Log unauthenticated api call
misspellings in the api cause the same type of error, so include that information in this log
src/Microsoft.Identity.Web.DownstreamApi/DownstreamApi.Logger.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Identity.Web.DownstreamApi/DownstreamApi.Logger.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Identity.Web.DownstreamApi/DownstreamApi.Logger.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Identity.Web.DownstreamApi/DownstreamApi.HttpMethods.cs
Outdated
Show resolved
Hide resolved
|
Looks good so far. Do you plan to do more or ready to move out of draft? |
Ready to move out of draft |
src/Microsoft.Identity.Web.DownstreamApi/DownstreamApiLoggingEventId.cs
Outdated
Show resolved
Hide resolved
jennyf19
left a comment
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.
![]()
jmprieur
left a comment
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.
LGTM
Follow-up is to move the code in the .tt file.
Introduce logging to DonwstreamApi for errors that occur due to misconfigured appsettings (base url, relative path, typos in api) and for unauthenticated requests.