I have created a plugin for authentication which will be validating a JWT token passed during API calls. I have also installed web-ui plugin of Nuxeo on my server but when I am logging in with Administrator credentials on web ui login page, it allows me login with any JWT token. Is there any way to prevent login without JWT token?
Below is the contrib.xml
<?xml version="1.0"?>
<component
name="com.softcell.dms.auth.jwt.authchain-override-config">
<extension
target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
point="specificChains">
<!--
Extending specificChains as we only want to handle RestApis through custom jwt plugin
-->
<specificAuthenticationChain
name="RestAPI">
<headers>
<header name = "Authorization">^(?:Basic|Bearer)\s.*</header>
<!-- request not intended with basic authentication -->
</headers>
<replacementChain>
<plugin>CUSTOM_JWT_AUTH</plugin>
</replacementChain>
</specificAuthenticationChain>
</extension>
<extension
target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
point="specificChains">
<!--
Extending specificChains as we only want to handle Automation apis through custom jwt plugin
-->
<specificAuthenticationChain
name="Automation">
<headers>
<header name = "Authorization">^(?:Basic|Bearer)\s.*</header>
<!-- request not intended with basic authentication -->
</headers>
<replacementChain>
<plugin>CUSTOM_JWT_AUTH</plugin>
</replacementChain>
</specificAuthenticationChain>
</extension>
</component>