<p dir="auto">I'm use data fixtures to register a user on database.<br>
For the password, i use the service "security.password_encoder" to encode the password. I use pbkdf2 algorythm.<br>
On action, i use the service security.authentication_utils.<br>
But, i have the same error message "bad credentials".</p>
<p dir="auto">In one of our environments <code class="notranslate">prod</code>, we encounter a strange duplication of the version part of asset urls.</p>
<p dir="auto">I can't see, where the difference lies - the <code class="notranslate">dev</code> environment, which has no difference in this configuration, works just fine.</p>
<h3 dir="auto">Templating configuration:</h3>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="framework:
    templating:
        engines: ['twig']
        assets_version: cd546ad6
        assets_version_format:  %%s?version=%%s"><pre class="notranslate"><span class="pl-ent">framework</span>:
    <span class="pl-ent">templating</span>:
        <span class="pl-ent">engines</span>: <span class="pl-s">['twig']</span>
        <span class="pl-ent">assets_version</span>: <span class="pl-s">cd546ad6</span>
        <span class="pl-ent">assets_version_format</span>:  <span class="pl-s">%%s?version=%%s</span></pre></div>
<h3 dir="auto">Twig asset call</h3>
<div class="highlight highlight-text-html-django notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{% javascripts
    filter=&quot;?yui_js&quot;
    output=&quot;js/backbone.js&quot;
    '../vendor/documentcloud/underscore/underscore.js'
    '../vendor/documentcloud/backbone/backbone.js'
%}
    &lt;script src=&quot;{{ asset(asset_url) }}&quot;&gt;&lt;/script&gt;
{% endjavascripts %}"><pre class="notranslate"><span class="pl-e">{%</span> <span class="pl-s">javascripts</span>
    <span class="pl-k">filter</span>=<span class="pl-s">"?yui_js"</span>
    <span class="pl-s">output</span>=<span class="pl-s">"js/backbone.js"</span>
    <span class="pl-s">'../vendor/documentcloud/underscore/underscore.js'</span>
    <span class="pl-s">'../vendor/documentcloud/backbone/backbone.js'</span>
<span class="pl-e">%}</span>
    &lt;<span class="pl-ent">script</span> <span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>{{ asset(asset_url) }}<span class="pl-pds">"</span></span>&gt;&lt;/<span class="pl-ent">script</span>&gt;
<span class="pl-e">{%</span> <span class="pl-s">endjavascripts</span> <span class="pl-e">%}</span></pre></div>
<h3 dir="auto">HTML result:</h3>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;script src=&quot;/js/backbone.js?version=cd546ad6?version=cd546ad6&quot;&gt;&lt;/script&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">/js/backbone.js?version=cd546ad6?version=cd546ad6</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span></pre></div>