src/AspNetCore/Identity/Bearer/src/SignInManaging/BearerSignInManagerUtils.cs
/// <summary>
/// Generates a service concrete JWT-token from token descriptor.
/// </summary>
Generates a service concrete JWT-token from token descriptor.
Generates a service concrete JWT - token from token descriptor .
public static string GenerateJwtToken(SecurityTokenDescriptor tokenDescriptor, bool setDefaultTimesOnTokenCreation)
        {
            tokenDescriptor = tokenDescriptor ?? throw new ArgumentNullException(nameof(tokenDescriptor));
            tokenDescriptor.Claims ??= new Dictionary<string, object>();
            return JwtTokenUtils.GenerateJwtToken(tokenDescriptor, setDefaultTimesOnTokenCreation);
        }
public static string GenerateJwtToken ( SecurityTokenDescriptor tokenDescriptor , bool setDefaultTimesOnTokenCreation ) { tokenDescriptor = tokenDescriptor ?? throw new ArgumentNullException ( nameof ( tokenDescriptor ) ) ; tokenDescriptor . Claims ??= new Dictionary < string , object > ( ) ; return JwtTokenUtils . GenerateJwtToken ( tokenDescriptor , setDefaultTimesOnTokenCreation ) ; }
Generates a service concrete JWT-token from token descriptor.
Generates a service concrete JWT - token from token descriptor .
tokenDescriptor
SecurityTokenDescriptor
setDefaultTimesOnTokenCreation
bool