使用ConfidentialClientApplication时应设置为redirectUri的内容

时间:2019-02-26 05:04:28

标签: c# active-directory

我正在使用下面的代码。它运作良好。但是我对redirectUri感到困惑。我应该设置什么?

string[] scopes = new string[] { "https://graph.microsoft.com/.default" };

ConfidentialClientApplication cca = new ConfidentialClientApplication(
                                        "XXXXX",
                                        "https://login.microsoftonline.com/XXXX",
                                        "http://localhost:3984/",
                                        new ClientCredential("XXXX"),
                                        null, new TokenCache());

var authResult = await cca.AcquireTokenForClientAsync(scopes);

0 个答案:

没有答案