Basic authentication

Status
Not open for further replies.

Alexfilho

New User
Joined
Dec 13, 2022
Messages
1
Reaction score
0

I have doubts about Basic authentication, in my case I'm trying to integrate with GLPI.​



- First I need to get the session_token

1670933570357.png

- For each request I need to inform the session_token and the app_token in the headers

1670933633015.png


I can't do it in the CRM template generator​

 
Well, not with the Wizard, because the wizard is designed to work with no authentication, basic authentication or OAuth2. In your case you have something different. It's possible to create a template for this, but you will need to edit the template after the wizard generates it.

First, for the Authentication Method select "None". Then, once you finish the template, you will need to change the authentication type to "Scenario":
1670935468936.png

Next, create a scenario, and set its ID for example to "InitSession". Then configure this scenario to execute the request for the initSession, and store the "session_token" from the response in a variable. This will be available for all subsequente scenarios.

Finally, in your contact lookup scenarios, use the variable generated during InitSession in the query string.
 
  • Like
Reactions: Evolute IT
Status
Not open for further replies.

Forum statistics

Threads
112,322
Messages
591,889
Members
165,470
Latest member
Robert Lee