Julian Sedding created SLING-10267:
--------------------------------------
Summary: Authentication requirements from SlingAuthenticator
config registered twice
Key: SLING-10267
URL: https://issues.apache.org/jira/browse/SLING-10267
Project: Sling
Issue Type: Improvement
Components: Authentication
Affects Versions: Auth Core 1.5.0
Reporter: Julian Sedding
I debugged in the {{SlingAuthenticator}} recently and noticed that all
{{sling.authentication.requirements}} configured for the {{SlingAuthenticator}}
are internally registered twice. This is because they get registered once
explicitly from the configuration and then again via the {{ServiceListener}}
that evaluates the {{sling.authentication.requirements}} from any service.
I think this causes no harm except for a very minor performance overhead when
scanning throug all authentication requirements.
Note: the effect can also be observed in the web console, where entries
configured on the {{SlingAuthenticator}} are listed twice.
cc [~cziegeler] as you have been working on auth core recently. Looking at the
latest code, I believe this issue survived your refactoring.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)