<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[xoa token expire date - how can i set it to an later date?]]></title><description><![CDATA[<p dir="auto">Hi Team,<br />
i want to use the xoa api to monitor if i have old or too many snapshots connected to an VM, thank you for implementing the feature to your API that it is possible now. I check it via icinga and need an token which expires in 5 years or something and not after a month. when I try to create a user in the webfrontend admin user with a date 5 years or 11 month from now, it logs an error with:</p>
<pre><code>too high expiresIn duration: 1956120152841
</code></pre>
<p dir="auto">I also tried to create the user via cli:</p>
<pre><code>#create timestamp for 5 years from now:
date +%s -d "5 year"
1831359954

#create user token
xo-cli --createToken --allowUnauthorized --expiresIn 1831359954 localhost admin@admin.net

Authentication token created

7kkiyVwzgISlOTO2LozsjtVTDPHG71lvqHEtYeSRQf0
</code></pre>
<p dir="auto">but the expiration date of the token is only 30 days from now.</p>
<p dir="auto">I dont want to create a new token every 30 days and reconfigure our icinga monitoring system to work with a new token, so can you please tell me how I can create a tekoen with higher age and maybe put it into the documentation, i was able to find the "--expiresIn" parameter but no info what you should put in there <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=566b705aef6" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">cheers guys! Ringo</p>
]]></description><link>https://xcp-ng.org/forum/topic/6809/xoa-token-expire-date-how-can-i-set-it-to-an-later-date</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 03:13:22 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/6809.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Jan 2023 09:25:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to xoa token expire date - how can i set it to an later date? on Thu, 19 Jan 2023 11:33:36 GMT]]></title><description><![CDATA[<p dir="auto">Thanks guys! Absolut Legends <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44c.png?v=566b705aef6" class="not-responsive emoji emoji-android emoji--ok_hand" style="height:1.4em;width:auto;vertical-align:middle" title="👌" alt="👌" /></p>
]]></description><link>https://xcp-ng.org/forum/post/57442</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/57442</guid><dc:creator><![CDATA[vmpr]]></dc:creator><pubDate>Thu, 19 Jan 2023 11:33:36 GMT</pubDate></item><item><title><![CDATA[Reply to xoa token expire date - how can i set it to an later date? on Wed, 18 Jan 2023 09:02:14 GMT]]></title><description><![CDATA[<p dir="auto">Which is <code>/etc/xo-server/config.toml</code> if you use XOA <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=566b705aef6" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/57354</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/57354</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Wed, 18 Jan 2023 09:02:14 GMT</pubDate></item><item><title><![CDATA[Reply to xoa token expire date - how can i set it to an later date? on Wed, 18 Jan 2023 09:04:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/vmpr" aria-label="Profile: vmpr">@<bdi>vmpr</bdi></a> Yes, you need to write your settings in your own config file, see <a href="https://github.com/vatesfr/xen-orchestra/blob/3c7d316b3cb3e949316e4a93f74da954df81a65f/packages/xo-server/sample.config.toml#L4-L5" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vatesfr/xen-orchestra/blob/3c7d316b3cb3e949316e4a93f74da954df81a65f/packages/xo-server/sample.config.toml#L4-L5</a></p>
]]></description><link>https://xcp-ng.org/forum/post/57353</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/57353</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Wed, 18 Jan 2023 09:04:10 GMT</pubDate></item><item><title><![CDATA[Reply to xoa token expire date - how can i set it to an later date? on Wed, 18 Jan 2023 03:17:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/julien-f" aria-label="Profile: julien-f">@<bdi>julien-f</bdi></a> thanks for the answer! this will get overwritten with every xo source update right? how about a licensed xoa? cheers Ringo</p>
]]></description><link>https://xcp-ng.org/forum/post/57351</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/57351</guid><dc:creator><![CDATA[vmpr]]></dc:creator><pubDate>Wed, 18 Jan 2023 03:17:32 GMT</pubDate></item><item><title><![CDATA[Reply to xoa token expire date - how can i set it to an later date? on Mon, 16 Jan 2023 16:26:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/vmpr" aria-label="Profile: vmpr">@<bdi>vmpr</bdi></a> You need to update <code>authentication.maxTokenValidity</code> in your xo-server's config.</p>
<p dir="auto">See <a href="https://github.com/vatesfr/xen-orchestra/blob/6c44a94bf4b7adc2d3a46d5a7813f6a675b8f49b/packages/xo-server/config.toml#L46" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vatesfr/xen-orchestra/blob/6c44a94bf4b7adc2d3a46d5a7813f6a675b8f49b/packages/xo-server/config.toml#L46</a></p>
]]></description><link>https://xcp-ng.org/forum/post/57247</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/57247</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Mon, 16 Jan 2023 16:26:53 GMT</pubDate></item><item><title><![CDATA[Reply to xoa token expire date - how can i set it to an later date? on Fri, 13 Jan 2023 09:33:40 GMT]]></title><description><![CDATA[<p dir="auto">That's a question for <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/julien-f" aria-label="Profile: julien-f">@<bdi>julien-f</bdi></a> <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=566b705aef6" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/57133</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/57133</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Fri, 13 Jan 2023 09:33:40 GMT</pubDate></item></channel></rss>