<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);" class="elementToProof">Looks like it times out after the default of 24 hours, but can be
renewed if you authenticate again.</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);" class="ContentPasted0">Defined here:
<a href="https://gitlab.isc.org/isc-projects/stork/-/blob/aa1036c20dd32eaeaa9675b329d8b704dbeeb718/backend/server/database/session/session_manager.go#L23" id="LPNoLPOWALinkPreview">
https://gitlab.isc.org/isc-projects/stork/-/blob/aa1036c20dd32eaeaa9675b329d8b704dbeeb718/backend/server/database/session/session_manager.go#L23</a><br>
</span></div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
<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);" class="ContentPasted0 ContentPasted1">Default defined here:
<a href="https://pkg.go.dev/github.com/alexedwards/scs/v2#SessionManager" id="LPNoLPOWALinkPreview_1">
https://pkg.go.dev/github.com/alexedwards/scs/v2#SessionManager</a><br>
</span></div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview_1 _EReadonly_1"></div>
<br>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="background: transparent; margin-bottom: 0in; line-height: 100%;"><b>Eric Graham</b></p>
<p style="background: transparent; margin-bottom: 0in; line-height: 100%;"><i>DevOps Specialist<br>
</i></p>
<p style="background: transparent; margin-bottom: 0in; line-height: 100%;"><font style="font-size:8pt" size="1">Main: 605.995.1777</font></p>
<p style="background: transparent; margin-bottom: 0in; line-height: 100%;"><a href="mailto:Eric.Graham@Vantagepnt.com"><font style="font-size:8pt" size="1">Eric.Graham@Vantagepnt.com</font></a></p>
<p style="background: transparent; margin-bottom: 0in; line-height: 100%;"><br>
</p>
<div style="background: transparent; margin-bottom: 0px; line-height: 100%; margin-top: 16px;">
<img style="width:289.368px; height:63.6369px" width="289.36792452830184" height="63.63692946058091" data-outlook-trace="F:1|T:1" src="cid:0f13ce25-3560-468c-bb93-d2addb327210"><br>
</div>
<p style="background: transparent; margin-bottom: 0in; line-height: 100%;"><br>
</p>
<p style="background: transparent; margin-bottom: 0in; line-height: 100%;"><font style="font-size:9pt" size="2"><b>Mitchell | Portland | Colorado Springs | San Antonio | Sioux Falls | Springfield | Charlotte</b></font></p>
</div>
</div>
</div>
</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> Tuesday, December 13, 2022 2:26 AM<br>
<b>To:</b> kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> Re: [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>
Am 12.12.22 um 16:39 schrieb Eric Graham:<br>
> Hi Stefan,<br>
><br>
> As far as I am aware, there's no token. Send a POST to /sessions and use<br>
> the "session" cookie to authenticate, as so:<br>
><br>
> ➜ curl -k -c cookie.txt -X POST -H 'Content-Type: application/json'<br>
> <a href="https://127.68.45.99/api/sessions">https://127.68.45.99/api/sessions</a> -d '{"useremail": "admin",<br>
> "userpassword": "your password here"}'<br>
> {"email":"admin@yourdomain.local","groups":[1],"id":2,"lastname":"Admin","login":"admin","name":"Test Admin"}<br>
><br>
> ➜ cat cookie.txt<br>
> # Netscape HTTP Cookie File<br>
> # <a href="https://curl.se/docs/http-cookies.html">https://curl.se/docs/http-cookies.html</a><br>
> # This file was generated by libcurl! Edit at your own risk.<br>
><br>
> #HttpOnly_10.0.7.11 FALSE / FALSE 1670945665 session<br>
> jWZUnuCYYhs6seDTKpliwnp4eIWHIA1ObVi_Ior_YYLk<br>
><br>
> ➜ curl -k -X GET -H 'Content-Type: application/json' -b cookie.txt<br>
> <a href="https://127.68.45.99/api/users">https://127.68.45.99/api/users</a><br>
> {"items":[{"email":"admin@yourdomain.local","groups":[1],"id":2,"lastname":"Admin","login":"admin","name":"Test Admin"}],"total":1}<br>
><br>
> ------------------------------------------------------------------------<br>
<br>
Great, works here ... does that cookie have a lifetime, does it time out ?<br>
<br>
thanks<br>
<br>
<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>