@using System.Security.Claims; @model IReadOnlyList @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @{ Layout = null; } Google.Apis.Auth.AspNetCore3 sample - OAuth Tokens

Google.Apis.Auth.AspNetCore3 sample - OAuth Tokens

You are logged in as @User.FindFirst(ClaimTypes.GivenName)?.Value.

@if (@Model.Count > 0) {

Here is information about the OAuth tokens being used for authentication and authorization purposes.

} else {

There's no OAuth token related information that we could find. This probably means that an error has occurred during authentication.

}

Index