Conversation
jena-fuseki2/jena-fuseki-main/src/main/java/org/apache/jena/fuseki/main/FusekiServer.java
Show resolved
Hide resolved
...useki2/jena-fuseki-main/src/main/java/org/apache/jena/fuseki/main/auth/AuthBearerFilter.java
Show resolved
Hide resolved
|
This PR is definitely a good first step and should get merged ASAP
I would somewhat disagree with this. Certainly in the general case we probably can't support verifying every possible JWT that users might want to use (algorithms, key sources etc). But for most everyday cases I think we could support a default verifier based on the following parameters that would be compatible with most OAuth2/OpenID Connect authentication providers:
This can be provided in a separate PR (and one which I'm happy to author myself) |
|
Environments where we might provide a solution are the major cloud providers. The code can be delivered via a module that configures a servlet filter. |
This resolves GH-1292.
The PR covers mainly client-side with a thin interface for responding to bearer auth 401 challenges. The application must a function to provide the token. There is little a standard library can do. The server side has some preparation work but again there has to be custom code somewhere to validate tokens in the deployment environment. This is probaly better done with a Fuseki module - cusomt code for Fuseki main as released.