<system.identityModel>但是,ClaimsIdentity上的BootstrapContextvar identity = Thread.CurrentPrincipal.Identity as ClaimsIdentity;
var context = identity.BootstrapContext
在下面的代码中,externalData.ExternalIdentity.BootstrapContext始终为空。this.userBusinessLogic.GetUser(externalData.Login.LoginProvider, externalData.Login.ProviderKey);
if (user == n
bootstrapContext = claimsIdentity.BootstrapContext as BootstrapContext;
//bootstrapContextis not null and bootstrapContext.Token is not null, however bootstrapContext.SecurityToken is nullbootstrapContext = claimsIdent
userAssertionClientCredential clientCred = new ClientCredential(clientId, clientSecret);
var bootstrapContext= ClaimsPrincipal.Current.Identities.First().BootstrapContext as System.IdentityModel.Tokens.BootstrapContextClaimTypes.Upn).Value : ClaimsPrincipal.Current.
at org.apache.drill.exec.server.BootStrapContext.getCanonicalHostName(BootStrapContext.java:169)at org.apache.drill.exec.server.BootStrapContext.<init>(BootStrapContext.java:81)
at org.apache.drill.exec.server.Drillbit.at java.net.InetAddress.getLocalHos
因此,我尝试从bootstrapcontext.token创建UserAssertion对象。但这一次,每当我请求访问令牌时,我都会收到标题中提到的这个错误。Startup.clientId, Startup.appKey);
var bootstrapContext= ClaimsPrincipal.Current.Identities.First().BootstrapContext