/// <summary>
    /// Creates a new API that coexists with an authorization server.
    /// </summary>
    /// <param name="name">The name of the API.</param>
    /// <param name="configure">The <see cref="Func{ApiResourceBuilder, ApiResource}"/> to configure the identity server jwt API.</param>
    public void AddIdentityServerJwt(string name, Action <ApiResourceBuilder> configure)
    {
        var apiResource = ApiResourceBuilder.IdentityServerJwt(name);

        configure(apiResource);
        Add(apiResource.Build());
    }
 private static ApiResource GetLocalAPI(string name, ResourceDefinition definition) =>
 ApiResourceBuilder.IdentityServerJwt(name)
 .FromConfiguration()
 .WithAllowedClients(ApplicationProfilesPropertyValues.AllowAllApplications)
 .ReplaceScopes(ParseScopes(definition.Scopes) ?? new[] { name })
 .Build();