Hi all,
I am trying to set up OIDC authentication for my shinyproxy instance using Auth0 & NGINX over SSL. The application works when authentication is set to none. When setting authentication to Auth0 however Spring appears to encounter an error and then go into an infinite loop.
My application.yml file is as follows :
proxy:
title: Open Analytics Shiny Proxy
logo-url: h!!p://www.openanalytics.eu/sites/www.openanalytics.eu/themes/oa/logo.png
landing-page: /
heartbeat-rate: 10000
heartbeat-timeout: 60000
port: 8080
container-wait-time: 40000
authentication: openid
openid:
auth-url: h!!ps://blabla.eu.auth0.com/authorize
token-url: h!!ps://blabla.eu.auth0.com/oauth/token
jwks-url: h!!ps://blabla.eu.auth0.com/.well-known/jwks.json
client-id: cool_id
client-secret: cool_secret
server:
useForwardHeaders: true
docker:
url: h!!p://localhost:2375
port-range-start: 20000
#internal-networking: true
specs:
- id: red_app
container-cmd: [“R”, “-e”, “shiny::runApp(’/srv/shinydockerimage’)”]
container-image: blablapp
logging:
level:
org.springframework.security: debug
file:
shinyproxy.log
My Nginx conf file is the exact same as instructed on the shinyproxy website
Here is an extract from the shinyproxy log when the loop happens :
– [ XNIO-2 task-4] o.s.s.authentication.ProviderManager : Authentication attempt using org.springframework.security.oauth2.client.authentication.OAuth2LoginAuthenticationProvider
2019-02-20 12:06:19.558 DEBUG 22867 — [ XNIO-2 task-4] o.s.s.authentication.ProviderManager : Authentication attempt using org.springframework.security.oauth2.client.oidc.authentication.OidcAuthorizationCodeAuthenticationProvider
Before that the log indicates an error is occuring : " [authorization request _not_found]"
I have set the callback URL within the Auth0 portal accordingly to instructions and I’ve also populated the YAML file for Auth0 accordingly to instructions. I’ve also set my NGINX conf file accordingly to instructiuons.
Thanks in advance for your help.