func NewConfiguration(options ...option) (*Configuration, error) {
	m := new(Configuration)
	cp := newHTTPConfigurationProvider(http.Get, jsonDecodeResponse)
	jp := newHTTPJwksProvider(http.Get, jsonDecodeResponse)
	ksp := newSigningKeySetProvider(cp, jp, pemEncodePublicKey)
	kp := newSigningKeyProvider(ksp)
	m.tokenValidator = newIDTokenValidator(nil, jwt.Parse, kp)

	for _, option := range options {
		err := option(m)

		if err != nil {
			return nil, err
		}
	}

	return m, nil
}
// The NewConfiguration creates a new instance of Configuration and returns a pointer to it.
// This function receives a collection of the function type option. Each of those functions are
// responsible for setting some part of the returned *Configuration. If any if the option functions
// returns an error then NewConfiguration will return a nil configuration and that error.
The NewConfiguration creates a new instance of Configuration and returns a pointer to it.
This function receives a collection of the function type option. Each of those functions are
responsible for setting some part of the returned *Configuration. If any if the option functions
returns an error then NewConfiguration will return a nil configuration and that error.
// The NewConfiguration creates a new instance of Configuration and returns a pointer to it . // This function receives a collection of the function type option . Each of those functions are // responsible for setting some part of the returned * Configuration . If any if the option functions // returns an error then NewConfiguration will return a nil configuration and that error .
func NewConfiguration(options ...option) (*Configuration, error) {
	m := new(Configuration)
	cp := newHTTPConfigurationProvider(http.Get, jsonDecodeResponse)
	jp := newHTTPJwksProvider(http.Get, jsonDecodeResponse)
	ksp := newSigningKeySetProvider(cp, jp, pemEncodePublicKey)
	kp := newSigningKeyProvider(ksp)
	m.tokenValidator = newIDTokenValidator(nil, jwt.Parse, kp)
	for _, option := range options {
		err := option(m)
		if err != nil {
			return nil, err
		}
	}
	return m, nil
}
func NewConfiguration ( options ... option ) ( * Configuration , error ) { m := new ( Configuration ) cp := newHTTPConfigurationProvider ( http . Get , jsonDecodeResponse ) jp := newHTTPJwksProvider ( http . Get , jsonDecodeResponse ) ksp := newSigningKeySetProvider ( cp , jp , pemEncodePublicKey ) kp := newSigningKeyProvider ( ksp ) m . tokenValidator = newIDTokenValidator ( nil , jwt . Parse , kp ) for _ , option := range options { err := option ( m ) if err != nil { return nil , err } } return m , nil }
The NewConfiguration creates a new instance of Configuration and returns a pointer to it.
The NewConfiguration creates a new instance of Configuration and returns a pointer to it .