Skip to content

OIDC Refresh Token #464

Description

@nik-humphries

I see this has been mentioned here #365 and also on the containerproxy repo openanalytics/containerproxy#47 and here openanalytics/containerproxy#65 (still open) and is in the documentation here https://shinyproxy.io/documentation/spel/#openid-connect

I am using Azure B2C for authentication and cannot seem to access the refreshtoken.

#{oidcUser.attributes.xxx} works fine and so does #{oidcUser.idToken.tokenValue} but #{oidcUser.refreshToken} returns NULL.

Is there anything obvious that I could be missing? Using the same policies elsewhere returns a refresh token (in browser msal auth).

image

    container-env:
      OIDC_ID_TOKEN: "#{oidcUser.idToken.tokenValue}"
      OIDC_ALL: "#{oidcUser}"
      OIDC_REFRESH_TOKEN: "#{oidcUser.refreshToken}"
      IS_AZURE: true
      AZ_CONTAINERNAME: xxx
      AZ_MSI_CLIENT_ID: xxx
      POSTGRESQL_DRIVER: "PostgreSQL ANSI"
      POSTGRESQL_DB_NAME: "xxx"
      POSTGRESQL_USER: "xxx"
      POSTGRESQL_USER_APPEND: FALSE
      # RSTUDIO
      DISABLE_AUTH: true
      USER: "#{proxy.userId}"
      # Use the following line when using ShinyProxy 2.6.0 or later
      WWW_ROOT_PATH: "#{proxy.getRuntimeValue('SHINYPROXY_PUBLIC_PATH')}"
      # Use the following line when using ShinyProxy 2.5.0
      # WWW_ROOT_PATH: "#{proxySpec.containerSpecs[0].env.get('SHINYPROXY_PUBLIC_PATH')}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions