We’re developing a Single-Page Application using Helidon SE as the api and webserver. We are struggling how to configure OIDC authentication using Auth0.
We are not sure about the following:
If the webapp does an AJAX call, and the user is not authenticated, we do expect the server to respond with a 401 and the info on how to redirect to authenticate. If there is a non-Ajax call, we expect the server to respond with a redirect to the auth provider.
We are not sure how to configure Helidon SE (v3) to achieve this behavior
We’ve tried several tutorials and examples on using OIDC in Helidon SE, but were not able to achieve the desired behavior as described previously.
What’s the configuration for Helidon/architecture for the SPA to handle authentication using Auth0, considering there is a mix of Ajax and non-ajax calls.
We clearly have a lack of understanding here on how to build such an application
2