Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
smougin opened this issue Jun 5, 2024 · 3 comments
Open

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

smougin opened this issue Jun 5, 2024 · 3 comments

Comments

@smougin
Copy link

smougin commented Jun 5, 2024

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
Copy link
Owner

@pavel-z1

@pavel-z1
Copy link
Collaborator

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
Copy link
Author

smougin commented Oct 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants