Expand my Community achievements bar.

I want to read the contents/settings of Apache Sling Authentication Service. How can I do it?

Avatar

Level 2

I don't need the full code. even a sample code that reads another AEM service/package.

just some guides on what to do. I searched the net but didn't find anything useful. Thanks

1 Reply

Avatar

Level 7

Use ConfigurationAdmin

Configuration configuration = configurationAdmin.getConfiguration("org.apache.sling.engine.impl.auth.SlingAuthenticator");

Then configuration.getProperties() would give you a dictionary of properties..

Fetch individual values like : configuration.getProperties().get("auth.sudo.cookie")