Authentication of web services using the senior X Platform token
It is possible to authenticate web services using the senior X Platform token. For this to occur, it is necessaryconfigure the keys com.senior.g7.identityServerURL, com.senior.g7.validatecertificate It is com.senior.g7.trustedTenant in Configuration Center.
Requirements
In addition to having the user registered in the Senior User Manager with the same name registered in the senior X Platform, it is necessary to deploy the web services and have the Middleware configured and functioning correctly.
To call these web services, it is necessary to change the SOAP envelope of the request, replacing the value of the parameterpassword by the token and change the parameter valueencrypted to 3, as shown in the example:
1 two 3 4 5 6 7 8 9 10 11 12 13 14 |
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://services.senior.com.br" xmlns:XS="http://www.w3.org/2001/XMLSchema" xmlns:XI="http://www.w3.org/2001/XMLSchema-instance"> <S:Body><a:run><exec>sapiens</exec><user>admin</user> <key>com.senior.g5.co.ger.db@GetDBDate</key> <parent></parent><lot>0</lot> <parameters><?xmlversion="1.0" encoding="ISO-8859-1"?> <request id='' user='admin'password='4d20580b9471158248eab39cb519f853' encrypted='3' service='com.senior.g5.co.ger.db' port='GetDBDate'> <params><prCallMode>2</prCallMode><FlowName></FlowName> <FlowInstanceID></FlowInstanceID></params></request></parameters> </a:run></S:Body></S:Envelope> |