auth0 icon indicating copy to clipboard operation
auth0 copied to clipboard

Callback URL Mismatch

Open dvera opened this issue 1 year ago • 0 comments

Getting callback URL mismiatch.

Running shiny app behind nginx which also handles ssl

auth0 callback URL contains

https://<SUBDOMAIN>.<DOMAIN>.<TLD>

_auth0.yml

name: app
remote_url: 'https://<SUBDOMAIN>.<DOMAIN>.<TLD>'
auth0_config:
  api_url: 'https://<USERNAME>.us.auth0.com'
  credentials:
    key: '<KEY>'
    secret: '<SECRET>'

nginx.conf

server {
        listen 443 ssl;
        server_name <SUBDOMAIN>.<DOMAIN>.<TLD> ;
        ssl_certificate         /etc/letsencrypt/live/<SUBDOMAIN>.<DOMAIN>.<TLD>/fullchain.pem;
        ssl_certificate_key     /etc/letsencrypt/live/<SUBDOMAIN>.<DOMAIN>.<TLD>/privkey.pem;
        location / {
                proxy_pass         "http://127.0.0.1:8888";
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_read_timeout 600s;
                proxy_redirect    off;
                proxy_set_header  Host              $http_host;
                proxy_set_header  X-Real-IP         $remote_addr;
                proxy_set_header  X-Forwarded-For   $proxy_add_x_forwarded_for;
                proxy_set_header  X-Forwarded-Proto https;
        }
}

R

library(shiny)
options(shiny.port=8888)
runApp("app", port = 8888 , launch.browser = F)

Result: image

dvera avatar Jul 02 '24 18:07 dvera