Accessing OIDC-ID-token

Hello everyone, we are using OpenID Connect for authentication as described here: After successful authentication, the container contains the following variables with the expected information: SHINYPROXY_USERNAME, SHINYPROXY_USERGROUPS, SHINYPROXY_OIDC_ACCESS_TOKEN. Is it also possible to access the id token in addition to the access token? In the documentation, it is mentioned several times that the id token is used to extract the username. So I assume that is available, but is it also accessable?


You can access the ID token using “SPeL”, for a detailed explanation see

For example, you can use:

 - id: 01_hello
   container-image: openanalytics/shinyproxy-demo
       SHINYPROXY_ID_TOKEN: "#{oidcUser.idToken.tokenValue}"

Wow, thank you very much!

1 Like

Hey one question… which atributes can I get from oidcUser.idToken???

So far I see we can get tokenValue and email… i am wondering if I can get user_metadata somehow with this approach