XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XCP-NG API token

    Scheduled Pinned Locked Moved REST API
    4 Posts 2 Posters 74 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y Offline
      yeopil21
      last edited by

      Is there a way to make the expiration date of the API token provided by XCP-NG infinite?

      florentF 1 Reply Last reply Reply Quote 0
      • florentF Offline
        florent Vates 🪐 XO Team @yeopil21
        last edited by

        @yeopil21 you're probably thinking of the xen orchestra token
        it can be inifinite but you can customize the duration : authentication.maxTokenValidity in your config file

        Y 1 Reply Last reply Reply Quote 0
        • Y Offline
          yeopil21 @florent
          last edited by

          @florent

          /etc/xo-server/config.toml
          /opt/xen-orchestra/packages/xo-server/.xo-server.toml

          What items should I look at in the config settings file?

          florentF 1 Reply Last reply Reply Quote 0
          • florentF Offline
            florent Vates 🪐 XO Team @yeopil21
            last edited by

            @yeopil21
            I would add a file config.tokenValidity.toml in /etc/xo-server with this content

            [authentication]
            defaultTokenValidity = '1 year'
            maxTokenValidity = '1 year'
            
            
            1 Reply Last reply Reply Quote 1
            • First post
              Last post