
StanN.77972 (Customer) asked a question.
@angular/core: 13.3.1
@okta/okta-signin-widget:^6.8.3
Right now, everything is working great - just need to be able to subscribe, or find an event or hook so I can log a successful login vs:
Now these both come back from Okta as a success because the user is Authenticated, but not necessarily a user with access to said application. We have users that can be part of one or many applications, my question is:
How do I hook into the widget to whether or not a user has logged in successfully, and is there a way to tell if this error pops up (ie not allowed to use said Okta application)?

Hello @StanN.77972 (Customer) Thank you for reacting out to our Community!
You can use the event hook based on the system log, as when a user tries to access an application that is not assigned, it will be captured in the system log. Please see our doc on this below:
https://developer.okta.com/docs/concepts/event-hooks/#ongoing-event-delivery
Community members help others by clicking Like or Select as Best on responses. Try it today.
Earn Today: New Okta Community Badges Have Arrived
Ask the experts about Okta Privileged Access
Thank you, I wouldn't have thought of event hooks!
Looking into the docs, it looks like I would need this one:
Hello @StanN.77972 (Customer) I would recommend to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/