Debugging when Authenticating from Shiny

オープン
#80 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
azure, r

調査の方向性

global.R、server.R、UI.R に分かれたセットアップを、「Authenticating from Shiny」vignette と比較します。clean_url_js スニペットと tenant、app、resource、redirect の値も含めてください。まず、報告されたエラー画像と Shiny server のログを調べます。再現可能な原因を特定し、具体的なデバッグまたは設定の修正を文書化できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
R
スター
48
フォーク
23
平均マージ
4時間 2分
マージ済み PR(30日)
3

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/AzureAuth のほかの issue

Azure/AzureAuth の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。