In my client app, I get a token for an application with
IConfidentialClientApplication espaceClientApp;
espaceClientApp = ConfidentialClientApplicationBuilder
.Create(clientId)
.WithTenantId(tenantId)
.WithClientSecret(clientSecret)
.Build();
espaceClientApp.AddInMemoryTokenCache();
AuthenticationResult authResult = await espaceClientApp.AcquireTokenForClient(new[] {
$"{validAudience}/.default"
}).ExecuteAsync();
I then get a oauth token but I can't figure what the value of the "sub" claim correspond to in B2C? I think it could be the audience id, but I don't see it in my AAD B2C Portal. No application has the ID that I get in the token. It may be related to the URI in the "Expose an API" menu? Fact is I used a custom name URI instead of the one defined by default (a Guid). I supposed this Guid is what I get in the "sub" claim. If it is so, how can I retreive the Guid in B2C dashboard or Graph API?
