phpipam / phpipam

phpipam development repository
https://phpipam.net
2.23k stars 733 forks source link

404 when I want to login API and get token #3890

Open cugZhaoHeng opened 1 year ago

cugZhaoHeng commented 1 year ago

I has installed the pipipam in my vmware CentOS, and I can login with username and password. image I open the API module in the GUI of phpipam. Then, I want to use REST API,first I have to get token as document written, so I input the url and params in Postman http://192.168.19.144/api/apiclient/user, and with the username and password image but record tell me url not found, Why?

dwillis77 commented 1 year ago

Did you go through this guide to enable rewrite and then enable the "prettify links" setting in phpIPAM Settings?

If so, also make sure your API token that you setup in the phpIPAM GUI is set to "SSL with user token" (or maybe just "user token" in this case since it looks like you are using regular HTTP) and that its name matches the name being used in your URL (apiclient from your example).

cugZhaoHeng commented 1 year ago

yes, I forget to rewirte the Apache configue file, thanks

At 2023-07-21 00:36:33, "dwillis77" @.***> wrote:

Did you go through this guide to enable rewrite and then enable the "prettify links" setting in phpIPAM Settings?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>