Hi all,
I would like to get token for some security reason.
Is it possible to do that via entrypoint or do you have another solution?
Sugar 7.6 Ent
Thanks,
M
Hi all,
I would like to get token for some security reason.
Is it possible to do that via entrypoint or do you have another solution?
Sugar 7.6 Ent
Thanks,
M
Hi Autchara,
The tokens are stored in your browser storages which is not accessible from PHP or servers. You can only reach this values using Javascript on client side.
If you really need this, I don't recommend to customise but you can customise/override /oauth2/token POST endpoint. (It looks to me only solution so far). You can have it somewhere before return it.
Best Regards
Tevfik Tümer
Developer Support Engineer
Hi Autchara,
The tokens are stored in your browser storages which is not accessible from PHP or servers. You can only reach this values using Javascript on client side.
If you really need this, I don't recommend to customise but you can customise/override /oauth2/token POST endpoint. (It looks to me only solution so far). You can have it somewhere before return it.
Best Regards
Tevfik Tümer
Developer Support Engineer
Thank for your advice.
If I want to get token via js in custom fields.
How to do?
I have custom field like this.