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

Debugging when Authenticating from Shiny #80

Open
rtucker8 opened this issue Jun 28, 2023 · 1 comment
Open

Debugging when Authenticating from Shiny #80

rtucker8 opened this issue Jun 28, 2023 · 1 comment

Comments

@rtucker8
Copy link

I am building a Shiny app for my organization and plan to use AzureAuth to authenticate users. This is my first time using AzureAuth, and I have found little help with it elsewhere on the internet.

My app has separate global.R, server.R, and UI.R components. I tried to follow the "Authenticating from Shiny" vignette, however I am receiving an uninformative error and nothing more is produced in the error logs of the Shiny server.

image

I added components to the server and ui functions as outlined in the vignette and defined tenant, app, resource, and redirect in my global.R file. I also included the following at the top (from Authenticating from Shiny Vingette):

clean_url_js <- sprintf(
  "
  $(document).ready(function(event) {
  const nextURL = '%s';
  const nextTitle = 'My new page title';
  const nextState = { additional information: 'Updated the URL with JS' };
  // This will create a new entry in the browser's history, without reloading
  window.history.pushState(nextState, nextTitle, nextURL);
  });
  ", redirect
)

Do you have any tips for debugging?

Thank you in advance.

@PhilippPro
Copy link

Did you get the token (locally)?

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

2 participants