|
|
@ -282,6 +282,13 @@ func LookupConfig(kv config.KVS, transport *http.Transport, closeRespFn func(io. |
|
|
|
jwksURL = env.Get(EnvIdentityOpenIDJWKSURL, kv.Get(JwksURL)) |
|
|
|
jwksURL = env.Get(EnvIdentityOpenIDJWKSURL, kv.Get(JwksURL)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
c = Config{ |
|
|
|
|
|
|
|
ClaimPrefix: env.Get(EnvIdentityOpenIDClaimPrefix, kv.Get(ClaimPrefix)), |
|
|
|
|
|
|
|
publicKeys: make(map[string]crypto.PublicKey), |
|
|
|
|
|
|
|
transport: transport, |
|
|
|
|
|
|
|
closeRespFn: closeRespFn, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
configURL := env.Get(EnvIdentityOpenIDURL, kv.Get(ConfigURL)) |
|
|
|
configURL := env.Get(EnvIdentityOpenIDURL, kv.Get(ConfigURL)) |
|
|
|
if configURL != "" { |
|
|
|
if configURL != "" { |
|
|
|
c.URL, err = xnet.ParseHTTPURL(configURL) |
|
|
|
c.URL, err = xnet.ParseHTTPURL(configURL) |
|
|
@ -308,13 +315,6 @@ func LookupConfig(kv config.KVS, transport *http.Transport, closeRespFn func(io. |
|
|
|
return c, nil |
|
|
|
return c, nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
c = Config{ |
|
|
|
|
|
|
|
ClaimPrefix: env.Get(EnvIdentityOpenIDClaimPrefix, kv.Get(ClaimPrefix)), |
|
|
|
|
|
|
|
publicKeys: make(map[string]crypto.PublicKey), |
|
|
|
|
|
|
|
transport: transport, |
|
|
|
|
|
|
|
closeRespFn: closeRespFn, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
c.JWKS.URL, err = xnet.ParseHTTPURL(jwksURL) |
|
|
|
c.JWKS.URL, err = xnet.ParseHTTPURL(jwksURL) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return c, err |
|
|
|
return c, err |
|
|
|