You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2018/01/23 15:17:00 UTC

[jira] [Commented] (CAMEL-10621) Issue with Rest DSL, Jetty and Basic authentication

    [ https://issues.apache.org/jira/browse/CAMEL-10621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16335900#comment-16335900 ] 

Claus Ibsen commented on CAMEL-10621:
-------------------------------------

Thanks I was able to reproduce this with latest code, and are working on a fix

> Issue with Rest DSL, Jetty and Basic authentication
> ---------------------------------------------------
>
>                 Key: CAMEL-10621
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10621
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jetty
>    Affects Versions: 2.18.1
>            Reporter: Remco Schoen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 2.21.0
>
>         Attachments: HardcodedLoginService.java, camel-context.xml, log.camel.txt
>
>
> I'm trying to create an API with Rest DSL and Swagger Java components. For hosting the API I want to use Jetty and use Basic Authentication to secure it.
> With Jetty 8 the code below works, but with Camel 2.18.1 my code fails in Jetty 9 with this error:
> No LoginService for org.eclipse.jetty.security.authentication.BasicAuthenticator
> It seems that when the security handler is re-added for the api-docs, the loginService is gone and can not be found anymore in the beans store of the server. I see in Jetty configuration examples that the loginService is also added as a bean to the Jetty server. If it has been added, it can be found when re-adding the security handler.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)