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

Justin Bertram commented on ARTEMIS-3952:
-----------------------------------------

The multiple invocations of {{beforeCreateSession}} is expected because when an 
MQTT client connects 2 sessions are created internally - 1 for client-specific 
operations (e.g. consume, produce, etc.) and 1 for implementation-specific 
operations (e.g. handling QOS 1 & 2 operations).

Can you provide your {{broker.xml}}? My hunch is that you're disabling the 
authentication cache which causes multiple authentication attempts to fetch the 
subject for authorization operations.

> when auth plugin called, beforeCreateSession method will be call twice time
> ---------------------------------------------------------------------------
>
>                 Key: ARTEMIS-3952
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3952
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.25.0
>            Reporter: gongping.zhu
>            Priority: Major
>         Attachments: ArtemisBrokerPlugin.java, JAASSecurityManagerWrapper.java
>
>
> 1, when auth plugin called,the beforeCreateSession method will be call twice 
> times
> 2,ActiveMQSecurityManager5 authenticate method will call more then one times



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to