# Use httpS callback URL for Okat auth system

**URL:** <https://support.openanalytics.eu/t/use-https-callback-url-for-okat-auth-system/993>\
**Category:** ShinyProxy\
**Created:** [March 4, 2019, 1:58pm UTC](https://support.openanalytics.eu/t/use-https-callback-url-for-okat-auth-system/993 "2019-03-04T13:58:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VincentGuyader](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/vincentguyader/32/163_2.png) [@VincentGuyader](https://support.openanalytics.eu/u/VincentGuyader)\
**Post date:** [March 4, 2019, 1:58pm UTC](https://support.openanalytics.eu/t/use-https-callback-url-for-okat-auth-system/993/1 "2019-03-04T13:58:47Z")

</div>

Hi,

we are trying to use shinyproxy with an okta auth system.  
Everything seems to be going well except for the very last steps, the callback URL is `http://(your-shinyproxy-url)/login/oauth2/code/shinyproxy` but we haven an error because our okta system doesn’t allow a redirection on a non-httpS URL.  
How an we force shinyproxy to use `httpS://(your-shinyproxy-url)/login/oauth2/code/shinyproxy` as callback URL ?

Regards

---

<div class="post-metadata">

**Author:** ![fmichielssen](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/fmichielssen/32/1088_2.png) [@fmichielssen](https://support.openanalytics.eu/u/fmichielssen)\
**Post date:** [March 7, 2019, 10:54am UTC](https://support.openanalytics.eu/t/use-https-callback-url-for-okat-auth-system/993/2 "2019-03-07T10:54:28Z")

</div>

Hi @VincentGuyader,

Do you have a proxy (nginx maybe) in place that terminates ssl?  
If this is the case, shinyproxy receives http requests and assumes the redirect must also be http.  
To make it clear that the original request was https, add the following setting to your application.yml:

```
server:
  useForwardHeaders: true 

```

In this case, the header `X-Forwarded-Proto` will be inspected to figure out if http or https was used.
