<div dir="ltr">We had a similar problem at $work. To get what we wanted we had to stop using the HTTP plugin and do something like this (warning: hand-written, un-tested code follows) in the Root controller.<div><br></div><div>my ( $username, $password ) = $c-&gt;request-&gt;headers-&gt;authorization_basic;<br></div><div>my $logged_in_user;</div><div>if ( defined $username &amp;&amp; defined $password ) {<br></div><div>   some_method_in_users_that_concatenates_and_athenticates($username, $password);</div><div>}<br></div><div><br></div><div>if ($logged_in_user) {</div><div>   $c-&gt;stash(user =&gt; $logged_in_user;</div><div>   ...</div><div>}<br></div><div>else {</div><div>  $c-&gt;response-&gt;header(&#39;WWW-Authenticate&#39; =&gt; &#39;Basic realm=&quot;MyRealm&quot;);</div><div>  $c-&gt;response-&gt;content_type(&#39;text/plain&#39;);</div><div>  $c-&gt;response-&gt;status(401);</div><div>  $c-&gt;detach();</div><div>}</div><div><br></div><div><br></div><div>HTH,</div><div>Dermot</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 May 2016 at 16:32, Gerhard Jungwirth <span dir="ltr">&lt;<a href="mailto:gjungwirth@sipwise.com" target="_blank">gjungwirth@sipwise.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am using Catalyst::Authentication::Store::DBIx::Class and<br>
Catalyst::Authentication::Credential::HTTP with the following configuration:<br>
<br>
        my_realm =&gt; {<br>
            credential =&gt; {<br>
                class =&gt; &#39;HTTP&#39;,<br>
                type =&gt; &#39;basic&#39;,<br>
                username_field =&gt; &#39;username&#39;,<br>
                password_field =&gt; &#39;password&#39;,<br>
                password_type =&gt; &#39;clear&#39;,<br>
            },<br>
            store =&gt; {<br>
                class =&gt; &#39;DBIx::Class&#39;,<br>
                user_model =&gt; &#39;DB::my_user_table&#39;,<br>
            },<br>
        },<br>
<br>
Which works great. The thing is: I want the user to authenticate in the form &quot;username@domain:password&quot; using HTTP Basic Authentication, where username and domain are checked against separate fields in my DBIx::Class table. (Ideally, domain is checked against a related table in my schema)<br>
<br>
Is that supported? If not, can it be added? If not, how do you suggest I implement that?<br>
<br>
Thanks and Cheers,<br>
Gerhard<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" rel="noreferrer" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/</a><br>
</blockquote></div><br></div>