org.mule.api.security.UnauthorisedException: Registered authentication is set to org.mule.module.spring.security.filters.http.HttpBasicAuthenticationFilter but there was no security context on the session. Authentication denied on endpoint http://localhost:8686/admin. Message payload is of type: String

MuleSoft JIRA | Roko Kruze | 5 years ago
  1. 0

    Currently today you can setup basic authentication for http. When the user makes the first request not using authentication an exception is put into the logs which when used in ION really clutters up the log viewer. The exception looks like the following: WARN 2011-06-08 16:01:07,283 [[testcaseproject-1.0-SNAPSHOT].connector.http.mule.default.receiver.3] org.mule.processor.SecurityFilterMessageProcessor: Outbound Request was made but was not authenticated: Registered authentication is set to org.mule.module.spring.security.filters.http.HttpBasicAuthenticationFilter but there was no security context on the session. Authentication denied on endpoint http://localhost:8686/admin. Message payload is of type: String org.mule.api.security.UnauthorisedException: Registered authentication is set to org.mule.module.spring.security.filters.http.HttpBasicAuthenticationFilter but there was no security context on the session. Authentication denied on endpoint http://localhost:8686/admin. Message payload is of type: String at org.mule.transport.http.filters.HttpBasicAuthenticationFilter.authenticateInbound(HttpBasicAuthenticationFilter.java:160) at org.mule.security.AbstractAuthenticationFilter.authenticate(AbstractAuthenticationFilter.java:70) at org.mule.security.AbstractAuthenticationFilter.doFilter(AbstractAuthenticationFilter.java:60) at org.mule.security.AbstractEndpointSecurityFilter.doFilter(AbstractEndpointSecurityFilter.java:53) at org.mule.processor.SecurityFilterMessageProcessor.process(SecurityFilterMessageProcessor.java:59) at org.mule.processor.ExceptionHandlingMessageProcessor.process(ExceptionHandlingMessageProcessor.java:25) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:185) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:158) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:145) at org.mule.transport.http.HttpMessageReceiver$HttpWorker.doRequest(HttpMessageReceiver.java:247) at org.mule.transport.http.HttpMessageReceiver$HttpWorker.processRequest(HttpMessageReceiver.java:206) at org.mule.transport.http.HttpMessageReceiver$HttpWorker.run(HttpMessageReceiver.java:164) at org.mule.work.WorkerContext.run(WorkerContext.java:309) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:680) In this case an exception should not be shown because the user tried to request the data with out providing any auth information and thus should have responded that it needed to send authentication. So in this case this should not be logged, instead perhaps a one line INFO request can be used instead.

    MuleSoft JIRA | 5 years ago | Roko Kruze
    org.mule.api.security.UnauthorisedException: Registered authentication is set to org.mule.module.spring.security.filters.http.HttpBasicAuthenticationFilter but there was no security context on the session. Authentication denied on endpoint http://localhost:8686/admin. Message payload is of type: String
  2. 0

    Currently today you can setup basic authentication for http. When the user makes the first request not using authentication an exception is put into the logs which when used in ION really clutters up the log viewer. The exception looks like the following: WARN 2011-06-08 16:01:07,283 [[testcaseproject-1.0-SNAPSHOT].connector.http.mule.default.receiver.3] org.mule.processor.SecurityFilterMessageProcessor: Outbound Request was made but was not authenticated: Registered authentication is set to org.mule.module.spring.security.filters.http.HttpBasicAuthenticationFilter but there was no security context on the session. Authentication denied on endpoint http://localhost:8686/admin. Message payload is of type: String org.mule.api.security.UnauthorisedException: Registered authentication is set to org.mule.module.spring.security.filters.http.HttpBasicAuthenticationFilter but there was no security context on the session. Authentication denied on endpoint http://localhost:8686/admin. Message payload is of type: String at org.mule.transport.http.filters.HttpBasicAuthenticationFilter.authenticateInbound(HttpBasicAuthenticationFilter.java:160) at org.mule.security.AbstractAuthenticationFilter.authenticate(AbstractAuthenticationFilter.java:70) at org.mule.security.AbstractAuthenticationFilter.doFilter(AbstractAuthenticationFilter.java:60) at org.mule.security.AbstractEndpointSecurityFilter.doFilter(AbstractEndpointSecurityFilter.java:53) at org.mule.processor.SecurityFilterMessageProcessor.process(SecurityFilterMessageProcessor.java:59) at org.mule.processor.ExceptionHandlingMessageProcessor.process(ExceptionHandlingMessageProcessor.java:25) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:185) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:158) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:145) at org.mule.transport.http.HttpMessageReceiver$HttpWorker.doRequest(HttpMessageReceiver.java:247) at org.mule.transport.http.HttpMessageReceiver$HttpWorker.processRequest(HttpMessageReceiver.java:206) at org.mule.transport.http.HttpMessageReceiver$HttpWorker.run(HttpMessageReceiver.java:164) at org.mule.work.WorkerContext.run(WorkerContext.java:309) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:680) In this case an exception should not be shown because the user tried to request the data with out providing any auth information and thus should have responded that it needed to send authentication. So in this case this should not be logged, instead perhaps a one line INFO request can be used instead.

    MuleSoft JIRA | 5 years ago | Roko Kruze
    org.mule.api.security.UnauthorisedException: Registered authentication is set to org.mule.module.spring.security.filters.http.HttpBasicAuthenticationFilter but there was no security context on the session. Authentication denied on endpoint http://localhost:8686/admin. Message payload is of type: String
  3. 0

    Mule - User - Handling BadCredentialsException on mule spring jdbc Authentication

    nabble.com | 6 months ago
    org.mule.api.security.UnauthorisedException: Registered authentication is set to org.mule.module.spring.security.filters.http.HttpBasicAuthenticationFilter but there was no security context on the session. Authentication denied on endpoint . Message payload is of type: String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Mule User mailing list

    gmane.org | 6 months ago
    org.mule.api.security.UnauthorisedException: Registered authentication is set to org.mule.module.spring.security.filters.http.HttpBasicAuthenticationFilter but there was no security context on the session. Authentication denied on endpoint . Message payload is of type: String
  6. 0

    Proxying rest webservice with basic auth - MuleSoft

    mulesoft.com | 1 year ago
    org.mule.api.security.UnauthorisedException: Registered authentication is set to org.mule.module.spring.security.filters.http.HttpBasicAuthenticationFilter but there was no security context on the session. Authentication denied on endpoint http://localhost:8081/ping. Message payload is of type: String

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.mule.api.security.UnauthorisedException

      Registered authentication is set to org.mule.module.spring.security.filters.http.HttpBasicAuthenticationFilter but there was no security context on the session. Authentication denied on endpoint http://localhost:8686/admin. Message payload is of type: String

      at org.mule.transport.http.filters.HttpBasicAuthenticationFilter.authenticateInbound()
    2. HTTP Transport
      HttpBasicAuthenticationFilter.authenticateInbound
      1. org.mule.transport.http.filters.HttpBasicAuthenticationFilter.authenticateInbound(HttpBasicAuthenticationFilter.java:160)
      1 frame
    3. Mule Core
      AbstractMessageReceiver.routeMessage
      1. org.mule.security.AbstractAuthenticationFilter.authenticate(AbstractAuthenticationFilter.java:70)
      2. org.mule.security.AbstractAuthenticationFilter.doFilter(AbstractAuthenticationFilter.java:60)
      3. org.mule.security.AbstractEndpointSecurityFilter.doFilter(AbstractEndpointSecurityFilter.java:53)
      4. org.mule.processor.SecurityFilterMessageProcessor.process(SecurityFilterMessageProcessor.java:59)
      5. org.mule.processor.ExceptionHandlingMessageProcessor.process(ExceptionHandlingMessageProcessor.java:25)
      6. org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:185)
      7. org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:158)
      8. org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:145)
      8 frames
    4. HTTP Transport
      HttpMessageReceiver$HttpWorker.run
      1. org.mule.transport.http.HttpMessageReceiver$HttpWorker.doRequest(HttpMessageReceiver.java:247)
      2. org.mule.transport.http.HttpMessageReceiver$HttpWorker.processRequest(HttpMessageReceiver.java:206)
      3. org.mule.transport.http.HttpMessageReceiver$HttpWorker.run(HttpMessageReceiver.java:164)
      3 frames
    5. Mule Core
      WorkerContext.run
      1. org.mule.work.WorkerContext.run(WorkerContext.java:309)
      1 frame
    6. Backport of JSR 166
      ThreadPoolExecutor$Worker.run
      1. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
      2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
      2 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:680)
      1 frame