示例#1
0
        static App()
        {
            PublicClientApp = PublicClientApplicationBuilder.Create(ClientId)
                              .WithB2CAuthority(AuthoritySignUpSignIn)
                              .WithRedirectUri("http://localhost")
                              .WithLogging(Log, LogLevel.Info, false) // don't log P(ersonally) I(dentifiable) I(nformation) details on a regular basis
                              .Build();

            TokenCacheHelper.Bind(PublicClientApp.UserTokenCache);
        }
示例#2
0
        static App()
        {
            PublicClientApp = PublicClientApplicationBuilder.Create(ClientId)
                              .WithB2CAuthority(AuthoritySignUpSignIn)
                              .WithRedirectUri(RedirectUri)
                              .WithLogging(Log, LogLevel.Info, false) // don't log PII details on a regular basis
                              .Build();

            TokenCacheHelper.Bind(PublicClientApp.UserTokenCache);
        }