Last post Aug 06, 2020 04:17 AM by Sean Fang
Aug 04, 2020 12:06 AM|progdever|LINK
I have a working web application that implements Single Sign On using Azure AD using OpenID Connect. I am trying to determine the best way to capture failed or unsuccessful login attempts. Is this possible? As I understand, as my application hands off the
authentication to Azure Identity Web, my app. would not know of a failed attempt, correct?
Aug 04, 2020 06:20 AM|Sean Fang|LINK
If you hands over the authentication to Azure Identity Web, you could monitor the sign-in activities in Azure portal.
It will provide you with a Sign-ins report which shows up below information for each sign-in log:
If you want to check the failed login attempts, simply select Failure from the Status drop-down to display only the failed sign-ins.
More details, you could refer to below guides:
How to: Troubleshoot sign-in errors using Azure Active Directory reports
Sign-in activity reports in the Azure Active Directory portal
Hope this can help you.
Aug 04, 2020 03:04 PM|progdever|LINK
Thanks. But is there a way to capture the failed logins from the web app itself?
Aug 04, 2020 03:16 PM|mgebhard|LINK
But is there a way to capture the failed logins from the web app itself?
The main reason to implement an external login is so you application does not manage accounts or ever see the user's credentials.
Why do you need this information? Reporting?
Aug 04, 2020 04:49 PM|progdever|LINK
Yes mostly for auditing. Thanks.
Aug 06, 2020 04:17 AM|Sean Fang|LINK
Obviously you could not directly monitor those sign-in activities from your web project.
However, there is a workaround using Activity reports API to fetch such information by calling Activity reports API
It includes two kinds of logs:
More information, you could refer to this link: Activity reports API overview
Please note that requests sent to the Graph API must be well-formed, target a
valid endpoint and version of the Graph API, and carry a
valid access token obtained from Azure AD in their Authorization header.