I am not getting any group claims back from Okta when authenticating using the id_token
. I am getting the name, email, address, and username, but no groups.
Not sure what else I would need to do to get this onto the principle
var clientID = WebConfigurationManager.AppSettings["okta:ClientId"];
var oidcIssuer = WebConfigurationManager.AppSettings["okta:OIDC_Issuer"];
TokenValidationParameters tvps = new TokenValidationParameters
{
ValidateAudience = true,
ValidAudience = clientID,
ValidateIssuer = true,
ValidIssuer = oidcIssuer,
ValidateLifetime = true,
ClockSkew = TimeSpan.FromMinutes(5),
};
app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions
{
AccessTokenFormat = new JwtFormat(tvps,
new OpenIdConnectCachingSecurityTokenProvider(oidcIssuer + "/.well-known/openid-configuration")),
});