wpietrzakpl / GlpiTools

PowerShell Module to work with Glpi API
15 stars 8 forks source link

connexion API via user et password #31

Open ludovicbernard opened 1 year ago

ludovicbernard commented 1 year ago

Good morning, Is it possible to use user and password to connect via the glpi API? , to replace the user token Thanks

wpietrzakpl commented 1 year ago

hey, now no. Whole module is prepared only for using access token

ludovicbernard commented 1 year ago

Good morning, on the glpi, I have a read-only API user account that has been created, so I have the app-token of the API account, to be able to connect to the site in API , I must use an account with user and password which the profile API read-only + app_token API account , I do not see how to make the request invoke-restmethod to pass the authentication in mode basic , can you help me with this authentication issue? THANKS Cordially,