drze7794 2018-05-15 09:20
浏览 87
已采纳

SuiteCRM令牌在创建后立即过期/撤销

I have installed the SuiteCRM and configured the keys using openssl, then when i try to create any oauth token, its getting created successfully, but its ( oauth token) getting expired and its expiry date-time is 7 hours behind the Date-Created, please check the following screenshot. Please reply as fast as possible.

enter image description here

So when i use this token in the following get API, i'm getting following error.

API :

URL : http://127.0.0.1:81/suitecrm/api/v8/modules/Accounts

Header :

Content-type: application/vnd.api+json
 Accept: application/vnd.api+json
 Authorization : Bearer
 eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjQ1YzdiZTExZWQ1ZWQ0OGMwOWVmNWUzYjhk
    YjYyMWI4MTMxNTk4MmE2NzJiNDQ5NzRiZjE0MjFlMjE2OTU3YjJiOTVjZTkwZTMyMjYzYzk3In0.eyJh
    dWQiOiIzYTg2MTUwYS00M2Q5LTMxNDQtNDcwNi01YWZhOGUyMzdlY2QiLCJqdGkiOiI0NWM3YmUxMWVk
    NWVkNDhjMDllZjVlM2I4ZGI2MjFiODEzMTU5ODJhNjcyYjQ0OTc0YmYxNDIxZTIxNjk1N2IyYjk1Y2U5
    MGUzMjI2M2M5NyIsImlhdCI6MTUyNjM2OTk3NywibmJmIjoxNTI2MzY5OTc3LCJleHAiOjE1MjYzNzM1
    NzcsInN1YiI6IiIsInNjb3BlcyI6WyJzdGFuZGFyZDpjcmVhdGUiLCJzdGFuZGFyZDpyZWFkIiwic3Rh
    bmRhcmQ6dXBkYXRlIiwic3RhbmRhcmQ6ZGVsZXRlIiwic3RhbmRhcmQ6cmVsYXRpb25zaGlwOmNyZWF0
    ZSIsInN0YW5kYXJkOnJlbGF0aW9uc2hpcDpyZWFkIiwic3RhbmRhcmQ6cmVsYXRpb25zaGlwOnVwZGF0
    ZSIsInN0YW5kYXJkOnJlbGF0aW9uc2hpcDpkZWxldGUiXX0.b8JSGHeseziZsrdXa6TexfmLNkifEmt1
    al-3c0_mnQlJcPUhcoF8K77iRvPBOCc9tYkd19Rq6BlHXxDe1kqCJT9659xfLkTYAziZOI5WeZb8P_D8jPl
    Bq910trERpLNY-12lqnNURiR4K1zAie4064oLBrLmNCvYVI7hvrkkwU4

API RESPONSE WITH ERROR: -

{
"error": "access_denied",
"message": "The resource owner or authorization server denied the request.",
"hint": "Access token has been revoked"
}

Thanks in Advance, Please help us to fix this issue.

  • 写回答

2条回答 默认 最新

  • dongyong1942 2018-05-16 10:48
    关注

    I have figured out the issue, its a timezone issue, When i change the timezone in the php.ini file to "UTC", everything starts working fine.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置