[英]SuiteCRM Token Expired / Revoked Immediately After creating it
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. 我已经安装了SuiteCRM并使用openssl配置了密钥,然后当我尝试创建任何oauth令牌时,成功创建了该令牌,但其(oauth令牌)已过期,并且其到期日期时间比创建日期晚了7个小时,请检查以下屏幕截图。 Please reply as fast as possible. 请尽快回复。
So when i use this token in the following get API, i'm getting following error. 因此,当我在以下get API中使用此令牌时,出现以下错误。
API : API:
URL : http://127.0.0.1:81/suitecrm/api/v8/modules/Accounts 网址: 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: - API响应错误:-
{
"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. 在此先感谢您,请帮助我们解决此问题。
我已经解决了这个问题,它是一个时区问题,当我将php.ini文件中的时区更改为“ UTC”时,一切都开始正常工作。
OAuth is broken in SuiteCRM. OAuth在SuiteCRM中已损坏。 See this open GitHub issue. 请参阅此GitHub公开问题。
https://github.com/salesagility/SuiteCRM/issues/5711 https://github.com/salesagility/SuiteCRM/issues/5711
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.