Debugging when Authenticating from Shiny

Aperta
#80 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
azure, r

Direzione di ricerca

Confronta la configurazione separata di global.R, server.R e UI.R con la vignette “Authenticating from Shiny”, incluso lo snippet clean_url_js e i valori di tenant, app, resource e redirect. Inizia esaminando l’immagine dell’errore segnalato e i log del server Shiny; il lavoro sarà considerato concluso quando sarà stata identificata una causa riproducibile e sarà stata documentata una correzione concreta di debugging o configurazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
R
Stelle
48
Fork
23
Merge medio
4h 2m
PR unite (30g)
3

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/AzureAuth

Tutte le issue di Azure/AzureAuth

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.