Hi there,
I created a custom social connector (OAuth2) and it seems it’s working as expected but I noticed an action I created and added to the post-login trigger is not running, no matter what I do. Is that a limitation? Is there a workaround? Am I doing something wrong and it should usually work?
Did anybody experience the same?
Thanks
Thomas
Hi @thomas.ernst
Welcome to the Auth0 Community!
Reading through your issue, there shouldn’t be any limitations with regards to custom Social Connectors not working with Actions. I believe the issue might be in a different place, most likely with the Actions itself.
I would recommends checking the following:
-
if the Action has been deployed; even though this might seem obvious, the Action might have been built, but not deployed;
-
errors in the Action itself → there could be syntax issues that might fail or halt the Action from executing correctly; you might catch such issues by going to Monitoring > Logs in your dashboard and searching for actions_execution_failed
( documentation for Log Type Codes ) or filter for Actions Executions Failed.
-
please also try to add console.log()
statements in your Action to track it’s execution, which can help pin-point where a potential fail occurs. I also recommend using the Real-time Webtask Logs Extension, running the Action and checking the extension for any issues.
-
the Custom Social Connector might not be enabled for your Application, you can check in your Auth0 tenant → Applications → select the app you are using → Connections tab.
Looking forward to your update!
Gerald
Hi @gerald.czifra,
Thanks for the suggestions but the problem is not the action. If I log into my app directly via Auth0 the post-login trigger runs and the action (which is just a console log for testing) runs perfectly. But if I use my custom social connector it does not trigger the post-login flow. The custom social connector does work though since it is creating a user in Auth0. The reason why I want to use the post-login trigger is because I want to restrict users from the social login to those that already exist in Auth0 and that have been properly set up with all permissions, roles etc. So the post-login flow would check if a user with the same email exists and then link both user records (the one I created and the other one that was created by the social connector).
To summarise:
- The custom social connector is working
- The action is working when the post-login flow runs
- The trigger for post-login is working for direct login but not for custom social connector login.
Any ideas?
Thanks
Thomas