3
I thought a lot if I would open the question or not (it may be out of scope or broad or based on opinions), but as I am with many doubts regarding the use of a correct structure and that meets my need I decided to open.
Let’s go to my need.
Reporting system:
We have a reporting software (JAVA
), it does not have API for rendering the report in PHP.
All customers will have access to it. (each client will be differentiated by a single key)
We need to access these reports through a URL
passing parameters, which could bring disorders by attempts to access improper information...
Security:
When the user logs into the PHP system he will get a unique key that would be stored in a table MEMORY
and on leaving that key would be eliminated.
Every time he accesses a report this key would be passed for validation on the other system before opening the report. After all the user would not like to login again when entering this system... and we also passed the single key to each customer.
So far we have three parameters: exemplo.com/relatorios?relatorio=teste&cliente=teste&chave_acesso=teste
The main issue:
- There would be no better way to implement security between these two softwares without using parameters by URL?
- If you used the url, when it comes to storing the key in a table
MEMORY
, what would be its advantages/disadvantages?
I strongly recommend this lib: https://github.com/geekcom/phpjasper
– geekcom