douchun1900 2017-02-15 15:35
浏览 36

TYPO3回调网址,如何制作一个?

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!

  • 写回答

1条回答 默认 最新

  • dongyou8087 2017-02-16 19:41
    关注

    You should not run a standalone script but pipe it through TYPO3. If you do that, you have database and things available.

    Depending on what the callback is used for, an eID might be the best way.

    Register it in ext_localconf.php with:

    $TYPO3_CONF_VARS['FE']['eID_include']['keyword'] = 'EXT:myExtKey/eID/myScript.php';
    

    The URL of that script is now /index.php?eID=keyword and you can add as many parameters as you wish.

    评论

报告相同问题?

悬赏问题

  • ¥20 simulink单相桥式整流电路
  • ¥35 问问51单片机流水灯的代码该怎么写
  • ¥15 关于#百度#的问题:感觉已经将字体段落、字体、页边距、纸张大小、文档网络调成与论文模板一致,为什么黄色部分字体左右的间距还是不一样啊,求私信发文件接收看一下
  • ¥15 stata webuse报错
  • ¥15 TypeError: Cannot read properties of undefined (reading 'status')
  • ¥15 如何利用AI去除图片中的竹架子
  • ¥15 python 写个基金爬取的代码,自动卖出功能
  • ¥15 Linux系统启动不起来
  • ¥15 为什么运行仿真数码管不亮(语言-c语言)
  • ¥15 陈仁良《直升机飞行动力学》小扰动线化方程如何推导