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

Support API token authentication #27

Closed
ryanwholey opened this issue Feb 18, 2022 · 1 comment · Fixed by #29
Closed

Support API token authentication #27

ryanwholey opened this issue Feb 18, 2022 · 1 comment · Fixed by #29

Comments

@ryanwholey
Copy link
Owner

There has been some movement on the Pi-hole side to support API operations via API token!

It looks like it currently supports add/delete/list custom A & CNAME records, although the API response still looks to be in flux.

Might be time to move the Pi-hole client out to its own repo so it can be updated and released independently.

@ryanwholey
Copy link
Owner Author

ryanwholey commented Feb 19, 2022

I've started work on an API token based client https://github.com/ryanwholey/go-pihole. I'm thinking I'll integrate this in side by side to the current web password/session auth and then eventually remove the web password auth in a v1.0.0.

I'll have to also identify the minimum required Pi-Hole version that support API token auth

Edit: turns out to be Web Interface (AdmeLTE) >= 5.11.0

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

Successfully merging a pull request may close this issue.

1 participant