From 539ef10e81c88b1c666144e0045db44f7e4d17a5 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Thu, 1 Feb 2024 15:33:19 +0100 Subject: [PATCH] state --- titiler/cmr/factory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/titiler/cmr/factory.py b/titiler/cmr/factory.py index c1b6c93..f3f863c 100644 --- a/titiler/cmr/factory.py +++ b/titiler/cmr/factory.py @@ -552,7 +552,7 @@ def tiles_endpoint( tms=tms, reader=reader, reader_options=reader_options, - auth=request.app.cmr_auth, + auth=request.app.state.cmr_auth, ) as src_dst: image = src_dst.tile( x, @@ -742,7 +742,7 @@ def tilejson_endpoint( # type: ignore # TODO: can we get metadata from the collection? with CMRBackend( collectionId, - auth=request.app.cmr_auth, + auth=request.app.state.cmr_auth, tms=tms, ) as src_dst: minx, miny, maxx, maxy = zip(