@using Microsoft.AspNetCore.Authentication @using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Http @inject IHttpContextAccessor HttpContextAccessor @{ var pictureUrl = User.FindFirst("picture")?.Value; var preferredUsername = User.FindFirst("preferred_username")?.Value ?? "User"; }