[Kea-users] Stork API Key

Eric Graham eric.graham at vantagepnt.com
Mon Dec 12 15:39:13 UTC 2022


Hi Stefan,

As far as I am aware, there's no token. Send a POST to /sessions and use the "session" cookie to authenticate, as so:

➜ curl -k -c cookie.txt -X POST -H 'Content-Type: application/json' https://127.68.45.99/api/sessions -d '{"useremail": "admin", "userpassword": "your password here"}'
{"email":"admin at yourdomain.local","groups":[1],"id":2,"lastname":"Admin","login":"admin","name":"Test Admin"}

➜ cat cookie.txt
# Netscape HTTP Cookie File
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.

#HttpOnly_10.0.7.11     FALSE   /       FALSE   1670945665      session jWZUnuCYYhs6seDTKpliwnp4eIWHIA1ObVi_Ior_YYLk

➜ curl -k -X GET -H 'Content-Type: application/json' -b cookie.txt https://127.68.45.99/api/users
{"items":[{"email":"admin at yourdomain.local","groups":[1],"id":2,"lastname":"Admin","login":"admin","name":"Test Admin"}],"total":1}

________________________________
From: Kea-users <kea-users-bounces at lists.isc.org> on behalf of Stefan G. Weichinger <lists at xunil.at>
Sent: Monday, December 12, 2022 12:05 AM
To: kea-users at lists.isc.org <kea-users at lists.isc.org>
Subject: [Kea-users] Stork API Key

CAUTION: This email originated outside the organization. Do not click any links or attachments unless you have verified the sender.

Starting to think of using the Stork API
https://stork.readthedocs.io/en/latest/backend-api.html

browsing the mentioned docs on my Stork server but I can't figure out
how to generate an API Key to authenticate ... could someone point me at
someone howto?

thanks, Stefan
--
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20221212/de38c917/attachment-0001.htm>


More information about the Kea-users mailing list