# Identifying App Names for Failed and Successful Social IdP Logins

**URL:** <https://devforum.okta.com/t/identifying-app-names-for-failed-and-successful-social-idp-logins/31253>\
**Category:** Questions\
**Tags:** logs, idp\
**Created:** [November 19, 2024, 5:59am UTC](https://devforum.okta.com/t/identifying-app-names-for-failed-and-successful-social-idp-logins/31253 "2024-11-19T05:59:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sai\_Kiran\_Reddy](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Sai\_Kiran\_Reddy](https://devforum.okta.com/u/Sai_Kiran_Reddy)\
**Post date:** [November 19, 2024, 5:59am UTC](https://devforum.okta.com/t/identifying-app-names-for-failed-and-successful-social-idp-logins/31253/1 "2024-11-19T05:59:34Z")

</div>

Hello Okta team,

I am trying to identify both failed and successful social IdP logins for each app. To retrieve the app name for successful social IdP logins, I was able to use the `"user.authentication.auth_via_social"` eventType and find the app name by referencing the subsequent `"policy.evaluate_sign_on"` eventType.

However, for failed social IdP logins, I do not see a `"policy.evaluate_sign_on"` event following the failed `"user.authentication.auth_via_social"` eventType.

Is there any way to retrieve the app name the user is trying to access via social IdP when the login fails?

---

<div class="post-metadata">

**Author:** ![edwin.rajz](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@edwin.rajz](https://devforum.okta.com/u/edwin.rajz)\
**Post date:** [December 3, 2024, 11:31am UTC](https://devforum.okta.com/t/identifying-app-names-for-failed-and-successful-social-idp-logins/31253/2 "2024-12-03T11:31:30Z")

</div>

Hello,

Okta will not evaluate the Sign On Policy if authentication fails since this takes place on the IdP level. If user succeeds IdP authentication but is still failing social login to Okta, then an error is displayed to the user. Policy evaluation phase is still not reached in this case therefore system log will not contain such events.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 2, 2025, 11:32am UTC](https://devforum.okta.com/t/identifying-app-names-for-failed-and-successful-social-idp-logins/31253/3 "2025-01-02T11:32:04Z")

</div>

Closed on January 2, 2025, 11:32am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
