I'm trying to integrate a third party app in TYPO3. This app needs to be authenticated via OAuth. To do this the user is redirected to the app's login, then logs in and then should be redirected (with token data) back to TYPO3.
I have a script that can catch the token data setup in myextension/Resources/Public/Callback.php
However, I need to send the callback url to the third party app when I initiated the authentication process. My question is: what url do I have to supply if I want the callback to go to a script located in myextension/Resources/Public/ ?
Does TYPO3 have methods to generate urls like this? I'd love to hear about the methods. I've been browsing TYPO3 forums for hours, but couldn't get a concrete example nor a working solution.
Thanks!