私はAzure cloud for mobileアプリをテストしていて、はじめのセクションで提供されたサンプルアプリをダウンロードしました。 Azure Active Directoryを認証に使用するように設定しました。Azure iOS App認証エラー
私はiOSのシミュレータでアプリを実行すると、私は言ってターミナルにエラーが表示されます。
ERROR Error Domain=com.Microsoft.MicrosoftAzureMobile.ErrorDomain Code=-1302 "You must be logged in to use this application" UserInfo={com.Microsoft.MicrosoftAzureMobile.ErrorResponseKey= { URL: https://appname.azurewebsites.net/tables/TodoItem } { status code: 401, headers { "Content-Length" = 45; "Content-Type" = "text/html; charset=utf-8"; Date = "Sat, 25 Jun 2016 10:46:04 GMT"; Etag = "W/\"2d-vonn2FgYR/Z6jU4A0udEWA\""; Server = "Microsoft-IIS/8.0"; "Set-Cookie" = "ARRAffinity=155c1827c98c621a5b3208e361587e118813cc4207f5ad4c23e121c5c10fd7bf;Path=/;Domain=appname.azurewebsites.net"; "X-Powered-By" = "Express, ASP.NET"; } }, NSLocalizedDescription=You must be logged in to use this application, com.Microsoft.MicrosoftAzureMobile.ErrorRequestKey= { URL: https://appname.azurewebsites.net/tables/TodoItem }} Error: Error Domain=com.Microsoft.MicrosoftAzureMobile.ErrorDomain Code=-1173 "Push aborted due to authentication error" UserInfo={NSLocalizedDescription=Push aborted due to authentication error, NSUnderlyingError=0x7f84fb1bd910 {Error Domain=com.Microsoft.MicrosoftAzureMobile.ErrorDomain Code=-1302 "You must be logged in to use this application" UserInfo={com.Microsoft.MicrosoftAzureMobile.ErrorResponseKey= { URL: https://appname.azurewebsites.net/tables/TodoItem } { status code: 401, headers { "Content-Length" = 45; "Content-Type" = "text/html; charset=utf-8"; Date = "Sat, 25 Jun 2016 10:46:04 GMT"; Etag = "W/\"2d-vonn2FgYR/Z6jU4A0udEWA\""; Server = "Microsoft-IIS/8.0"; "X-Powered-By" = "Express, ASP.NET"; } }, NSLocalizedDescription=You must be logged in to use this application, com.Microsoft.MicrosoftAzureMobile.ErrorRequestKey= { URL: https://appame.azurewebsites.net/tables/TodoItem }}}}
はいえアプリが働いていると私はアイテムと負荷データを保存することができます。どのように私は以下の問題を解決することができますか?
どのようにバックエンドを設定しましたか?認証/許可のデフォルトアクションを「要求を許可する」に設定しましたか? (これは、アプリケーションがフロントエンドプロセッサの代わりに認証を制御するために必要です) –