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 onlyoffice编辑完后立即下载,下载的不是最新编辑的文档
  • ¥15 求caverdock使用教程
  • ¥15 Coze智能助手搭建过程中的问题请教
  • ¥15 12864只亮屏 不显示汉字
  • ¥20 三极管1000倍放大电路
  • ¥15 vscode报错如何解决
  • ¥15 前端vue CryptoJS Aes CBC加密后端java解密
  • ¥15 python随机森林对两个excel表格读取,shap报错
  • ¥15 基于STM32心率血氧监测(OLED显示)相关代码运行成功后烧录成功OLED显示屏不显示的原因是什么
  • ¥100 X轴为分离变量(因子变量),如何控制X轴每个分类变量的长度。