Is it possible to get token via entrypoint?

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

Parents
  • 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

Reply
  • 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

Children