Improve extensibility in Pre-Authentication scenarios

Description

We are using GeoServer in a Pre-Authentication scenario. GeoServerPreAuthenticationFilter is used as a basis for an own implementation which performs custom logic for retrieval of roles and also uses a custom principal implementation for certain reasons.

However currently we have to patch GeoServerPreAuthenticationFilter to integrate the required logic. Through a very small adjustment projects depending on custom login can maintain their stack more easily.

I will propose a pull request to introduce a small factory method within PreAuthenticatedAuthenticationToken, rather than using the constructor for the token inline.

Thanks for considering this and best regards,

Andreas

Environment

None

Activity

Andreas W 
September 1, 2023 at 11:34 AM

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Components

Priority

Created September 1, 2023 at 10:12 AM
Updated October 3, 2023 at 7:52 AM
Resolved October 3, 2023 at 7:52 AM