<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.art-decor.org/index.php?action=history&amp;feed=atom&amp;title=Exist-db-5-jwt-workaround</id>
	<title>Exist-db-5-jwt-workaround - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.art-decor.org/index.php?action=history&amp;feed=atom&amp;title=Exist-db-5-jwt-workaround"/>
	<link rel="alternate" type="text/html" href="https://wiki.art-decor.org/index.php?title=Exist-db-5-jwt-workaround&amp;action=history"/>
	<updated>2026-05-20T04:31:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.art-decor.org/index.php?title=Exist-db-5-jwt-workaround&amp;diff=8077&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;==== Workaround for JWT in eXist-db 5 ==== In order to overcome an error in the JWT versioning as specific workaround should be followed. * Browse to the package manager: Now...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.art-decor.org/index.php?title=Exist-db-5-jwt-workaround&amp;diff=8077&amp;oldid=prev"/>
		<updated>2021-07-28T10:18:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==== Workaround for JWT in eXist-db 5 ==== In order to overcome an error in the JWT versioning as specific workaround should be followed. * Browse to the package manager: Now...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==== Workaround for JWT in eXist-db 5 ====&lt;br /&gt;
In order to overcome an error in the JWT versioning as specific workaround should be followed.&lt;br /&gt;
* Browse to the package manager: Now add libraries to the view by means of the three vertical dots at the top right of the page.&lt;br /&gt;
* Remove the following packages (click the waste bin):&lt;br /&gt;
# EXPath Cryptographic Module Implementation&lt;br /&gt;
# jwt - create, read and verify JSON web tokens&lt;br /&gt;
&lt;br /&gt;
* Navigate, in eXide, to /db/apps/packageservice/configuration.xml and change the repository stanza back to what it was (but you may want to keep the DECOR-repository as a comment):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;repositories&amp;gt;&lt;br /&gt;
        &amp;lt;repository active=&amp;quot;true&amp;quot; default=&amp;quot;true&amp;quot;&amp;gt;http://exist-db.org/exist/apps/public-repo&amp;lt;/repository&amp;gt;&lt;br /&gt;
        &amp;lt;!--&amp;lt;repository active=&amp;quot;true&amp;quot; default=&amp;quot;true&amp;quot;&amp;gt;http://decor.nictiz.nl/apps/public-repo-dev5&amp;lt;/repository&amp;gt;--&amp;gt;&lt;br /&gt;
&amp;lt;/repositories&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Browse to the package manager.&lt;br /&gt;
Maybe you need to refresh the Package Manager page.&lt;br /&gt;
&lt;br /&gt;
* Check installed packages:&lt;br /&gt;
Just to be sure, navigate to the Package Manager tab labeled &amp;#039;&amp;#039;&amp;#039;Installed&amp;#039;&amp;#039;&amp;#039; and select Show libraries using the menu at the three vertical dots at the top right of the window. Then, verify that library semver.xq version 2.3.0 is installed.&lt;br /&gt;
&lt;br /&gt;
* Install with the package manager, by first selecting &amp;#039;&amp;#039;&amp;#039;Available&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
# roaster - OpenAPI Router (version 1.1.5 or higher)&lt;br /&gt;
# JWT - Create, read and verify JSON Web Tokens (JWT) in exist-db (version 1.1.1 or maybe higher)&lt;br /&gt;
&lt;br /&gt;
As a side effect of installing JWT, the depency “EXPath Cryptographic Module Implementation” has been installed, but we need a newer version. Proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Download the file expath-crypto-exist-lib-6.0.0RC1.xar from the following url:&lt;br /&gt;
https://github.com/chakl/crypto-exist-java-lib/raw/eXist-5.3.0/prebuilt/expath-crypto-exist-lib-6.0.0RC1.xar&lt;br /&gt;
&lt;br /&gt;
* Drag the downloaded file expath-crypto-exist-lib-6.0.0RC1.xar into the dropzone at the top of the Package Manager window. This will reinstall the EXPath Cryptographic Module Implementation we removed earlier, but now with another version.&lt;br /&gt;
&lt;br /&gt;
* Restart eXist-db&lt;br /&gt;
It appears that you need to restart eXist-db before all changes have effect, otherwise you will get an error message in the API saying:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
err:XQST0034 error found while loading module jwt-auth: Error while loading module jwt-auth.xqm: error found while loading module jwt: Error while loading module : Prolog has more than one imported module that defines the function: {http://expath.org/ns/crypto}generate-signature#7 [at line 5, column 1]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* End of workaround for JWT in eXist-db 5.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>