This is probably an edge case, but it has proven really hard to debug.
Scenario:
Configure userstorage and usersecretstorage both with the pdo storage handler.
Now for usersecretstorage you configure a table that does exist, but doesn't has the appropriate schema (in my case I accidentally set it to tiqrstate that is meant for statestorage).
Next, try to enroll a token.. It silently succeeds, no errors in the logs!
However, when you check the user-table the user doesn't have a secret set, and authentication will relentlessly fail when trying to use the token.
This is probably an edge case, but it has proven really hard to debug.
Scenario:
Configure
userstorage
andusersecretstorage
both with the pdo storage handler. Now forusersecretstorage
you configure a table that does exist, but doesn't has the appropriate schema (in my case I accidentally set it totiqrstate
that is meant forstatestorage
). Next, try to enroll a token.. It silently succeeds, no errors in the logs! However, when you check the user-table the user doesn't have asecret
set, and authentication will relentlessly fail when trying to use the token.