Copy Slurm JWT signing key and restrict permissions to this copy:

[source,console]
----
# cp /var/spool/slurm/jwt_hs256.key /var/lib/slurm-web/slurmrestd.key
----

Restrict access to this sensitive file with read permission to _slurm-web_
system user only:

[source,console]
----
# chown slurm-web:slurm-web /var/lib/slurm-web/slurmrestd.key
# chmod 0400 /var/lib/slurm-web/slurmrestd.key
----

ifdef::slurmrestd_uri[]
Edit Slurm-web agent configuration file [.path]#`/etc/slurm-web/agent.ini`# to
enable JWT authentication method:

[source,ini,subs="+attributes"]
----
[slurmrestd]
uri={slurmrestd_uri}
----

NOTE: You can optionally tune lifespan of token generated by Slurm-web with
`jwt_lifespan` configuration parameter (default: 3600 seconds, _ie._ 1 hour).
endif::[]
