[ 
https://issues.apache.org/jira/browse/AMQ-9244?focusedWorklogId=980336&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-980336
 ]

ASF GitHub Bot logged work on AMQ-9244:
---------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Aug/25 21:35
            Start Date: 25/Aug/25 21:35
    Worklog Time Spent: 10m 
      Work Description: mattrpav commented on code in PR #1480:
URL: https://github.com/apache/activemq/pull/1480#discussion_r2299188712


##########
assembly/src/release/conf/login.config:
##########
@@ -18,4 +18,12 @@ activemq {
     org.apache.activemq.jaas.PropertiesLoginModule required
         org.apache.activemq.jaas.properties.user="users.properties"
         org.apache.activemq.jaas.properties.group="groups.properties";
-};
\ No newline at end of file
+};
+
+OAuthConfiguration {
+    org.apache.activemq.jaas.oauth.OAuthLoginModule required
+    issuer="https://cognito-idp.us-west-2.amazonaws.com/us-west-2_iz1VrIxct";
+    
jwks_uri="https://cognito-idp.us-west-2.amazonaws.com/us-west-2_iz1VrIxct/.well-known/jwks.json";
+    group_resolver_class="org.apache.activemq.jaas.oauth.NoOpGroupResolver"

Review Comment:
   Using a class for group resolution gets tricky across runtimes that have 
varying classloader behaviors (specifically Apache Karaf and OSGi-based 
runtimes.)
   
   Since there is only one method, I think having an AbstractOAuthLoginModule 
with shared methods and an abstract method for groupLookup() is the way to go.
   
   The default implementation can simply load a groups.properties file with 
user, group and role mappings similar to how pure local accounts work.
   





Issue Time Tracking
-------------------

    Worklog Id:     (was: 980336)
    Time Spent: 4h 10m  (was: 4h)

> Add JWT authentication plugin
> -----------------------------
>
>                 Key: AMQ-9244
>                 URL: https://issues.apache.org/jira/browse/AMQ-9244
>             Project: ActiveMQ Classic
>          Issue Type: Task
>          Components: Security/JAAS
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>          Time Spent: 4h 10m
>  Remaining Estimate: 0h
>




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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to