public override async Task <Dictionary <string, object> > CreateDiscoveryDocumentAsync(
            string baseUrl, string issuerUri)
        {
            var dict = await base.CreateDiscoveryDocumentAsync(baseUrl, issuerUri);

            return(CoreHelpers.AdjustIdentityServerConfig(dict, _globalSettings.BaseServiceUri.Identity,
                                                          _globalSettings.BaseServiceUri.InternalIdentity));
        }