Shinyproxy & Keycloak - ERR_TOO_MANY_REDIRECTS


#1

Hi all,

I am trying to use Single-Sign On / Keycloak and ShinyProxy.

I am using Docker. I have a container where Keycloak is working (from Keycloak Docker image) and I have another container where ShinyProxy is working.

I tested ShinyProxy (localhost:8180/) using authentication: simple and it was working.

Then I changed application.yml (authentication: keycloak):


proxy:
port: 8180
authentication: keycloak
admin-groups: admins
users:

  • name: jack
    password: password
    groups: admins
  • name: jeff
    password: password
    docker:
    internal-networking: true
    specs:
  • id: 01_hello
    display-name: Hello Application3
    description: Application which demonstrates the basics of a Shiny app
    container-cmd: [“R”, “-e”, “shinyproxy::run_01_hello()”]
    container-image: openanalytics/shinyproxy-demo
    container-network: sp-example-net
  • id: 06_tabsets
    container-cmd: [“R”, “-e”, “shinyproxy::run_06_tabsets()”]
    container-image: openanalytics/shinyproxy-demo
    container-network: sp-example-net
  • id: anaApp
    display-name: anaApp
    container-cmd: [“R”, “-e”, “shiny::runApp(’/root/euler2’)”]
    container-image: anaid
    container-network: sp-example-net
    keycloak:
    realm: shinyproxy
    auth-server-url: http://localhost:8080/auth
    resource: shinyproxy
    credentials-secret: 8af5deba-c9f1-4358-881b-3981460aded8

logging:
file:
shinyproxy.log


I created a realm called shinyproxy and a client called shinyproxy in Keycloak.

KeyCloak is working in localhost:8080/auth/

Shinyproxy is using port 8180.

If I go to localhost:8180/ , I get this:
image

And then, after I logged in, I got this message “This page isn’t working”. I can’t see my app working.

I would appreciate your help. Thank you!!
Ana


#2

This is the realm:
image