# Shinyproxy OpenID authorization with Okta

**URL:** <https://support.openanalytics.eu/t/shinyproxy-openid-authorization-with-okta/1552>\
**Category:** ShinyProxy\
**Created:** [May 27, 2020, 2:58pm UTC](https://support.openanalytics.eu/t/shinyproxy-openid-authorization-with-okta/1552 "2020-05-27T14:58:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fifthace](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/fifthace/32/439_2.png) [@fifthace](https://support.openanalytics.eu/u/fifthace)\
**Post date:** [May 27, 2020, 2:58pm UTC](https://support.openanalytics.eu/t/shinyproxy-openid-authorization-with-okta/1552/1 "2020-05-27T14:58:52Z")

</div>

I’m getting an error message when trying to authenticate with Okta via OpenID.

Here’s the error:  
 ![image](https://discourse.openanalytics.eu/uploads/default/original/1X/5e8791a44b8cca1ae138f23d5ebb65ea3329a637.png)

Here’s (most of) my application.yaml:

```
proxy:
  title: Mysite
  landing-page: /
  heartbeat-rate: 10000
  heartbeat-timeout: 60000
  port: 8080
  admin-groups: developers
  container-wait-time: 200000
  hide-navbar: true
  authentication: openid
  openid:
    auth-url: https://mysubdomain.okta.com/oauth2/v1/authorize
    token-url: https://mysubdomain.okta.com/oauth2/v1/token
    jwks-url: https://mysubdomain.okta.com/oauth2/v1/keys
    client-id: hidden
    client-secret: hidden
    logout-url: https://mysubdomain.okta.com/oauth2/logout
  specs:
  - id: abc123
    display-name: My project
    container-cmd: ["R", "-e", "shiny::runApp('/root/app')"]
    container-image: eu.gcr.io/myproject/afolder/image
    access-groups: [developers]
server:
  useForwardHeaders: true #Using Nginx with SSL

```

My SSO guy thinks the login redict URIs (and Initiate login URI) might be wrong (defined on Okta). Both are [https://prefix.mydomain.com/login/oauth2/code/shinyproxy](https://prefix.mydomain.com/login/oauth2/code/shinyproxy)

I noticed [a Github issue](https://github.com/openanalytics/shinyproxy/issues/198) discussing the following fields - is it anything to do with them?:

```
roles-claim: ***
scopes: ["openid","profile"]
username-attribute: name

```

Any tips very welcome. Thank you in advance!
