What we really need is some way to pass detailed error messages between the authentication plugin and the enrollment template.
I currently throw an InvalidcredentionsException but don't see this information when the enrollment fails.
I have also tried setting
values in the authentication plugin to be used later in the enrollment template.
We tried using tokens.set("name","test");
but the value is not visible in the values set in the enrollment template
In the enrollment templates the values for header.HTTP_HEADERS or head.AUTH_TOKEN don't get set.
Although the documentation says that the AUTH_TOKEN should contain the entries that have been set using the tokne.set(name,value)
FYI. This information won't go to the end-user , but will be caught by an application.