Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback URL Mismatch #98

Open
dvera opened this issue Jul 2, 2024 · 0 comments
Open

Callback URL Mismatch #98

dvera opened this issue Jul 2, 2024 · 0 comments

Comments

@dvera
Copy link

dvera commented Jul 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant