lord-kyron / terraform-provider-phpipam

Terrform provider for PHPIPAM
https://registry.terraform.io/providers/lord-kyron/phpipam/latest
Apache License 2.0
54 stars 30 forks source link

Question: is it possible to use to an authentication token? #92

Open smougin opened 5 months ago

smougin commented 5 months ago

is there a way to pass a token as parameter in the URL, for example like this: https://ipam.domain/api/?token=xxx ? Thank you BR

lord-kyron commented 3 months ago

@pavel-z1

pavel-z1 commented 2 months ago

Hi @smougin

Authentication logic is provided in phpipam-sdk-go Here is the source code

You can try to set empty username and set PHPIPAM API app toke in the password option Also probably need to configure PHPIPAM API to use "SSL with App code token" in the App security

I have not tested this authorization method If you need to add a modification to the authorization source code, you can create a Pull Request

smougin commented 2 months ago

Hi @pavel-z1 , It works fine with empty username and token. "SSL with App code token" is indeed required. Thank you