Migrate the OAuth request filter to efservices
As we've used it in multiple projects to preload the authenticated used and provide a simple way of applying Authenticated without a security provider, we should move the OAuth filter to the common lib. In this version, we will need to allow for configured scopes, paths to enforce login, and a flag to overall enable the functionality. We should add a config with the following fields:
Property | Type | Default | Purpose |
---|---|---|---|
eclipse.services.auth.request-filter.enabled | Boolean | False | Allow us to turn on and off the filter at a base level, independent of the auth service |
eclipse.services.auth.request-filter.scopes | Optional List of strings | Set scopes to be used when fetching a user for authentication. | |
eclipse.services.auth.request-filter.paths | Optional List of strings | The paths in which a signed-in user should be enforced. Can be regexes to allow for flexible paths. |