<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">Hi Stefan,</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">As far as I am aware, there's no token. Send a POST to /sessions and use the "session"
cookie to authenticate, as so:</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-family:monospace" class="ContentPasted0"><span style="font-weight: bold; color: rgb(255, 84, 84); background-color: rgb(255, 255, 255);" class="ContentPasted0">➜
</span><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted0">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"}' </span><br class="ContentPasted0">
</span></span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-family:monospace" class="ContentPasted0 elementToProof">{"email":"admin@yourdomain.local","groups":[1],"id":2,"lastname":"Admin","login":"admin","name":"Test
Admin"}</span></span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-family:monospace" class="ContentPasted0 elementToProof"><br class="ContentPasted0">
</span></span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-family:monospace" class="ContentPasted0 elementToProof"><span style="font-weight: bold; color: rgb(84, 255, 84); background-color: rgb(255, 255, 255);" class="ContentPasted0">➜
</span><span style="font-weight: bold; color: rgb(84, 255, 255); background-color: rgb(255, 255, 255);" class="ContentPasted0"></span><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted0">cat cookie.txt
</span><br class="ContentPasted0">
</span></span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-family:monospace" class="ContentPasted0 elementToProof"># Netscape HTTP
Cookie File <br class="ContentPasted0">
# https://curl.se/docs/http-cookies.html <br class="ContentPasted0">
# This file was generated by libcurl! Edit at your own risk. <br class="ContentPasted0">
<br class="ContentPasted0">
#HttpOnly_10.0.7.11 FALSE / FALSE 1670945665 session jWZUnuCYYhs6seDTKpliwnp4eIWHIA1ObVi_Ior_YYLk</span></span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-family:monospace" class="ContentPasted0 elementToProof"><br class="ContentPasted0">
</span></span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-family:monospace" class="ContentPasted0 elementToProof"><span style="font-weight: bold; color: rgb(84, 255, 84); background-color: rgb(255, 255, 255);" class="ContentPasted0">➜
</span><span style="font-weight: bold; color: rgb(84, 255, 255); background-color: rgb(255, 255, 255);" class="ContentPasted0"></span><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted0">curl -k -X GET -H 'Content-Type:
application/json' -b cookie.txt https://127.68.45.99/api/users </span><br class="ContentPasted0">
</span></span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-family:monospace" class="ContentPasted0 elementToProof">{"items":[{"email":"<span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-family:monospace" class="ContentPasted0">admin@yourdomain.local</span></span>","groups":[1],"id":2,"lastname":"Admin","login":"admin","name":"Test
Admin"}],"total":1}<br class="ContentPasted0">
</span></span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Kea-users <kea-users-bounces@lists.isc.org> on behalf of Stefan G. Weichinger <lists@xunil.at><br>
<b>Sent:</b> Monday, December 12, 2022 12:05 AM<br>
<b>To:</b> kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> [Kea-users] Stork API Key</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">CAUTION: This email originated outside the organization. Do not click any links or attachments unless you have verified the sender.<br>
<br>
Starting to think of using the Stork API<br>
<a href="https://stork.readthedocs.io/en/latest/backend-api.html">https://stork.readthedocs.io/en/latest/backend-api.html</a><br>
<br>
browsing the mentioned docs on my Stork server but I can't figure out<br>
how to generate an API Key to authenticate ... could someone point me at<br>
someone howto?<br>
<br>
thanks, Stefan<br>
--<br>
ISC funds the development of this software with paid support subscriptions. Contact us at
<a href="https://www.isc.org/contact/">https://www.isc.org/contact/</a> for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
<br>
Kea-users mailing list<br>
Kea-users@lists.isc.org<br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
</div>
</span></font></div>
</body>
</html>