func CallDiscoveryAPI() {
	log.Println("Entering CallDiscoveryAPI ")
	client := &http.Client{}
	request, err := http.NewRequest("GET", config.OAuthConfig.DiscoveryAPIHost, nil)
	if err != nil {
		log.Fatalln(err)
	}
	request.Header.Set("accept", "application/json")
	resp, err := client.Do(request)
	defer resp.Body.Close()
	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		log.Fatalln(err)
	}
	discoveryAPIResponse, err := getDiscoveryAPIResponse([]byte(body))
	cache.AddToCache("authorization_endpoint", discoveryAPIResponse.AuthorizationEndpoint)
	cache.AddToCache("token_endpoint", discoveryAPIResponse.TokenEndpoint)
	cache.AddToCache("jwks_uri", discoveryAPIResponse.JwksUri)
	cache.AddToCache("revocation_endpoint", discoveryAPIResponse.RevocationEndpoint)
	cache.AddToCache("userinfo_endpoint", discoveryAPIResponse.UserinfoEndpoint)
	cache.AddToCache("issuer", discoveryAPIResponse.Issuer)
	log.Println("Exiting CallDiscoveryAPI ")
}
/*
Call discovery document and populate the cache
package handlers
import (
	"encoding/json"
	"io/ioutil"
	"log"
	"net/http"
	"github.com/IntuitDeveloper/OAuth2-Go/cache"
	"github.com/IntuitDeveloper/OAuth2-Go/config"
)