File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,6 @@ fn get_app_host(config: &AppConfig) -> String {
167167pub struct OidcState {
168168 pub config : Arc < OidcConfig > ,
169169 cached_provider : Arc < RwLock < CachedProvider > > ,
170- app_config : Arc < AppConfig > ,
171170}
172171
173172impl OidcState {
@@ -199,7 +198,7 @@ impl OidcState {
199198 }
200199
201200 /// Refresh provider metadata and client from the OIDC provider
202- async fn refresh_provider ( & self ) -> anyhow:: Result < ( ) > {
201+ async fn refresh_provider ( & self , http_client : & awc :: Client ) -> anyhow:: Result < ( ) > {
203202 let mut cache = self . cached_provider . write ( ) . await ;
204203
205204 // Double-check we can refresh (another thread might have just done it)
@@ -214,9 +213,8 @@ impl OidcState {
214213 self . config. issuer_url
215214 ) ;
216215
217- let http_client = make_http_client ( & self . app_config ) ?;
218216 let new_metadata =
219- discover_provider_metadata ( & http_client, self . config . issuer_url . clone ( ) ) . await ?;
217+ discover_provider_metadata ( http_client, self . config . issuer_url . clone ( ) ) . await ?;
220218 let new_client = make_oidc_client ( & self . config , new_metadata. clone ( ) ) ?;
221219
222220 cache. update ( new_client, new_metadata) ;
You can’t perform that action at this time.
0 commit comments